annotate lib/logsetup.py @ 1306:2ffffcc7d0a4
some unadded files, for the record
Ignore-this: d86a03897a19d3cad8ddb8a6fca13c93
darcs-hash:3ff74ca8d153c84b8f24dd6182ca15dc8a0e86fd
author |
drewp <drewp@bigasterisk.com> |
date |
Sun, 21 Apr 2019 03:08:43 -0700 |
parents |
e379b1b4fe8b |
children |
|
rev |
line source |
806
|
1 # todo: graylog, twisted web route to some channel
|
|
2
|
|
3 import logging
|
|
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s")
|
|
5 logging.getLogger('restkit.client').setLevel(logging.WARN)
|
|
6 log = logging.getLogger()
|
|
7 log.setLevel(logging.INFO)
|
1022
|
8
|
|
9 def enableTwistedLog():
|
|
10 from twisted.python import log as twlog
|
|
11 import sys
|
|
12 twlog.startLogging(sys.stdout)
|
|
13
|
|
14
|
|
15
|