comparison src/sat.tac @ 1010:73a0b7f94674

primitivus: use of new logging system: - default output is \\memory - logs can be seen with :messages command - now useless writeLog method has been removed
author Goffi <goffi@goffi.org>
date Mon, 05 May 2014 20:12:19 +0200
parents 652c01ca69b1
children e40d9858cb83
comparison
equal deleted inserted replaced
1009:d1084f7e56a5 1010:73a0b7f94674
20 from twisted.application import service 20 from twisted.application import service
21 from twisted.internet import glib2reactor 21 from twisted.internet import glib2reactor
22 glib2reactor.install() 22 glib2reactor.install()
23 23
24 # XXX: We need to configure logs before any log method is used, so here is the best place. 24 # XXX: We need to configure logs before any log method is used, so here is the best place.
25 from sat.core.constants import Const as C
25 from sat.core import log 26 from sat.core import log
26 log.satConfigure() 27 log.satConfigure(C.LOG_BACKEND_TWISTED)
27 28
28 # XXX: SAT must be imported after log configuration, because it write stuff to logs 29 # XXX: SAT must be imported after log configuration, because it write stuff to logs
29 from sat.core.sat_main import SAT 30 from sat.core.sat_main import SAT
30 31
31 32