Prev | Index | Next

Logging

from twisted.python import log

# by default only errors are logged,
# to stderr
logFile = open('log.txt', 'a')
log.startLogging(logFile)

log.msg('Something has occured')