Skip to content

Instantly share code, notes, and snippets.

# ==== twisted/plugins/finger_plugin.py ====
# This snippet shows how to configure Twisted plugins to use custom logging.
# This is a modification of a 'finger' example by Chris Miles at
# http://chrismiles.livejournal.com/23399.html
#
# It's kind of a dirty monkey patching hack, but I don't know how to
# configure logging in plugins until this ticket is resolved:
# http://twistedmatrix.com/trac/ticket/638
#
# I change logging from the default LogFile to DailyLogFile, and also