summaryrefslogtreecommitdiff
path: root/Mailman/Logging
Commit message (Collapse)AuthorAgeFilesLines
* __get_f(): Use Mailman.Utils.reraise()bwarsaw1998-12-291-5/+2
|
* LogStdErr(): small patch to ensure we get a stdout. Python 1.5bwarsaw1998-12-291-1/+5
| | | | | | doesn't have the attribute sys.__stdout__; although this is placed into the sys module by the driver, I think there are non-CGI paths to this code.
* `make distclean' now removes stray .pyc files.bwarsaw1998-11-171-0/+1
|
* make finishbwarsaw1998-10-201-0/+2
|
* .__repr__(): Use the class name in the repr string, rather thanklm1998-08-031-7/+9
| | | | | | | hardcoded "Logger", so derived classes (eg, StampedLogger) identify themselves correctly. .__init__(): Clarified function docstring a bit.
* StampedLogger.__init__(): Added new default argument `immediate'bwarsaw1998-07-311-3/+6
| | | | which is passed through to the Logger.__init__().
* __logexc() => _logexc()bwarsaw1998-07-311-4/+4
| | | | XXX: This class is no longer used by the driver script.
* __logexc() => _logexc()bwarsaw1998-07-311-9/+16
| | | | | | | | | | | Logger.__init__(): New default argument `immediate' says to open the log file immediately upon creation (so we learn of errors early). Otherwise the log file is opened when first needed. Logger.__get_f(): Re-raise the exception using Python 1.5 semantics; can't guarantee everyone has Python 1.5.1. Also if nofail, then set the file pointer to be sys.__stderr__ so at least the exceptions will get logged to the Web server log file.
* __logexc(): Renamed to _logexc() -- single leading underscore -- so itbwarsaw1998-07-311-1/+2
| | | | doesn't get name mangled.
* Fixed package name in import of __logexc. If the module is not in thebwarsaw1998-07-231-1/+1
| | | | | | current directory, the full path of the package must be given. Strictly speaking, the package path isn't necessary since it is guaranteed to find the right Utils.
* Simplify the import, exploiting the fact that it's within the package.klm1998-07-232-2/+2
|
* LogStdErr(): New routine to simplify hooking up a StampedLogger withklm1998-07-231-0/+21
| | | | sys.stderr (and tee it to sys.stdout, also).
* Subpackage containing all logging classes.bwarsaw1998-07-027-0/+324
StampedLogger is carried over from before, with some changes. Logger used to be in Mailman.Utils MultiLogger is new, it is used to log identical message to a list of loggers supporting the write interface of file-like objects (e.g. a Logger or sys.__stdout__).