[CalendarServer-changes] [11498] CalendarServer/trunk/twext/python/log.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jul 10 11:49:49 PDT 2013
Revision: 11498
http://trac.calendarserver.org//changeset/11498
Author: wsanchez at apple.com
Date: 2013-07-10 11:49:49 -0700 (Wed, 10 Jul 2013)
Log Message:
-----------
Doc tweak.
Modified Paths:
--------------
CalendarServer/trunk/twext/python/log.py
Modified: CalendarServer/trunk/twext/python/log.py
===================================================================
--- CalendarServer/trunk/twext/python/log.py 2013-07-10 16:35:57 UTC (rev 11497)
+++ CalendarServer/trunk/twext/python/log.py 2013-07-10 18:49:49 UTC (rev 11498)
@@ -767,18 +767,19 @@
@implementer(ILogObserver)
class AMPObserver(object):
def __call__(self, event):
- # eg.: Hold all emitted events in a ring buffer and expose them
- # via AMP.
+ # eg.: Hold events in a ring buffer and expose them via AMP.
...
@implementer(ILogObserver)
class FileObserver(object):
def __call__(self, event):
- # eg.: Take only the filtered events and write them into a
- # file.
+ # eg.: Take events and write them into a file.
...
+ # Send all events to the AMPObserver
log.publisher.rootPublisher.addObserver(AMPObserver())
+
+ # Send filtered events to the FileObserver
log.publisher.filteredPublisher.addObserver(FileObserver())
With no observers added, the default behavior is that the legacy Twisted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130710/4f60c0ef/attachment-0001.html>
More information about the calendarserver-changes
mailing list