summaryrefslogtreecommitdiff
path: root/Mailman/Logging
Commit message (Collapse)AuthorAgeFilesLines
* Donn Cave's patch #602087 to honor configure's --srcdir switch.bwarsaw2002-12-121-1/+1
|
* __get_f(): LookupError is built-in. Bug reported by Carson Gaspar.bwarsaw2002-11-111-1/+1
|
* LogStdErr(): I don't think we really wanted to tee the log output tobwarsaw2002-10-211-19/+21
| | | | | | | | | stdout, so much as tee it to stderr, so I've changed the name of the argument and implemented this as a tee to stderr. I don't think this breaks any code, but I'm not 100% sure yet. Also, whitespace normalization and pychecker fixes.
* Fixes for logging of non-ascii messages. We have a default encodingbwarsaw2002-09-171-1/+17
| | | | | | | | | | for the log file (defaults to iso-8859-1, which works for xterms and xemacs buffers, although we may have to change this to us-ascii for release). We try to open the log file using the codecs module so output will be encoded by the proper stream writer. I'm not 100% sure about these changes, but they seem right and work for me.
* Update copyright years.bwarsaw2002-03-167-7/+7
|
* LogMsg() -> write()bwarsaw2001-07-061-3/+10
| | | | | | | | | | | | | write(): Just call new function write_ex(), passing arguments through. write_ex(): Use explicit arguments to pass in the args tuple and kws dictionary. This is because Python requires **kws in extended calls to be concrete dictionary objects, not generic mapping objects. SMTPDirect wants to pass in an instance of (subclassed) UserDict, so it calls write_ex() directly. Also, stash the msg argument in local variable origmsg, which is used if we get an exception during string interpolation.
* write(): Compare to None with `is' not `=='.bwarsaw2001-06-271-3/+6
|
* LogMsg(): Extended function signature to make argument passing bothbwarsaw2001-06-271-3/+12
| | | | | | nicer and more robust. String interpolation is now done here instead of at callee site, so exceptions like TypeError and ValueError can be caught and dealt with better.
* Untabification.bwarsaw2001-06-021-26/+27
|
* close(): When the file object is closed, set __fp to None so it getsbwarsaw2001-06-021-1/+2
| | | | re-opened at the next attempted write.
* Rename Syslog class to _Syslog to indicate that it shouldn't normallybwarsaw2000-06-021-3/+4
| | | | be instantiated.
* Makefile.in: Install all .py filesbwarsaw2000-06-022-2/+53
| | | | | | Syslog.py: New global logging class which replaces the MailList.LogMsg() interface. This module also creates a global instance which is callable and should be used for convenience.
* LogStdErr(): In the call to StampedLogger(), pass manual_reprime valuebwarsaw2000-06-011-1/+1
| | | | from the function argument.
* __get_f(): Since Python 1.5.2 is now required, we can get rid of thebwarsaw2000-04-031-4/+4
| | | | | | | Utils.reraise() hack. Also, use import statements which are more consistent with the rest of Mailman.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-216-5/+20
|
* reprime(): calls reprime on all sub-loggers, ignoring attribute errorsbwarsaw1999-12-251-0/+7
| | | | if the logger doesn't have a reprime method.
* Typobwarsaw1999-12-131-1/+1
|
* Slight change in formatbwarsaw1999-12-131-3/+3
|
* Always include the non-cached PID of the process doing the printing.bwarsaw1999-12-131-1/+2
|
* __get_f(): Open the log file in line buffered mode so flushesbwarsaw1999-12-131-1/+1
| | | | shouldn't be necessary.
* LogStdErr(): category was being ignored. Instead, use it as the firstbwarsaw1999-04-161-1/+1
| | | | argument to StampedLogger().
* VERSION is no longer set in configure because it's too hard tobwarsaw1999-01-151-2/+0
| | | | | | | | | | | | propagate version string changes to the public (you have to autoreconf, then reconfigure and reinstall). Now, VERSION is set directory in Defaults.py.in and the Release.py script updates that file directly. Now we just need to run ./config.status and do a re-install. I hope this will make things easier. I'm also bumping the version to 1.0b8, so I can do a release tomorrow.
* __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__).