[CalendarServer-changes] [2384]
CalendarServer/branches/users/wsanchez/logging/twistedcaldav/log.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 7 13:33:33 PDT 2008
Revision: 2384
http://trac.macosforge.org/projects/calendarserver/changeset/2384
Author: wsanchez at apple.com
Date: 2008-05-07 13:33:33 -0700 (Wed, 07 May 2008)
Log Message:
-----------
Add __repr__ to Logger.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/logging/twistedcaldav/log.py
Modified: CalendarServer/branches/users/wsanchez/logging/twistedcaldav/log.py
===================================================================
--- CalendarServer/branches/users/wsanchez/logging/twistedcaldav/log.py 2008-05-07 20:30:23 UTC (rev 2383)
+++ CalendarServer/branches/users/wsanchez/logging/twistedcaldav/log.py 2008-05-07 20:33:33 UTC (rev 2384)
@@ -153,6 +153,9 @@
self.namespace = namespace
+ def __repr__(self):
+ return "<%s %r>" % (self.__class__.__name__, self.namespace)
+
def emit(self, level, message, **kwargs):
"""
Called internally to emit log messages at a given log level.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080507/a5054402/attachment.html
More information about the calendarserver-changes
mailing list