summaryrefslogtreecommitdiff
path: root/Mailman/Logging/StampedLogger.py
diff options
context:
space:
mode:
authorbwarsaw1998-07-31 20:02:14 +0000
committerbwarsaw1998-07-31 20:02:14 +0000
commit7aa4450d79231f4a8c14a00de7bb3511e7ff70f6 (patch)
treef1eb256f6ba91c960cb6f52b12084d16ff413688 /Mailman/Logging/StampedLogger.py
parent16bd0ef70d7fb0155e2ad05cd7ec0d749baa6319 (diff)
downloadmailman-7aa4450d79231f4a8c14a00de7bb3511e7ff70f6.tar.gz
mailman-7aa4450d79231f4a8c14a00de7bb3511e7ff70f6.tar.zst
mailman-7aa4450d79231f4a8c14a00de7bb3511e7ff70f6.zip
Diffstat (limited to 'Mailman/Logging/StampedLogger.py')
-rw-r--r--Mailman/Logging/StampedLogger.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mailman/Logging/StampedLogger.py b/Mailman/Logging/StampedLogger.py
index 6ce8cce06..2b13a4294 100644
--- a/Mailman/Logging/StampedLogger.py
+++ b/Mailman/Logging/StampedLogger.py
@@ -36,13 +36,16 @@ class StampedLogger(Logger):
instead.
"""
- def __init__(self, category, label=None, manual_reprime=0, nofail=1):
- "If specified, optional label is included after timestamp."
+ def __init__(self, category, label=None, manual_reprime=0, nofail=1,
+ immediate=1):
+ """If specified, optional label is included after timestamp.
+ Other options are passed to the Logger class initializer.
+ """
self.__label = label
self.__manual_reprime = manual_reprime
self.__primed = 1
self.__bol = 1
- Logger.__init__(self, category, nofail=nofail)
+ Logger.__init__(self, category, nofail, immediate)
def reprime(self):
"""Reset so timestamp will be included with next write."""