This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ==== 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 |