summaryrefslogtreecommitdiff
path: root/Mailman/Logging/Logger.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* __get_f(): Use Mailman.Utils.reraise()bwarsaw1998-12-291-5/+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.
* __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.
* 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-231-1/+1
|
* Subpackage containing all logging classes.bwarsaw1998-07-021-0/+79
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__).