summaryrefslogtreecommitdiff
path: root/Mailman/Logging/Syslog.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years.bwarsaw2002-03-161-1/+1
|
* 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.
* 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.
* 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-021-0/+52
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.