primitivus: use of new logging system:

- default output is \\memory
    - logs can be seen with :messages command
    - now useless writeLog method has been removed
This commit is contained in:
Goffi 2014-05-05 20:12:19 +02:00
commit 39989cc985

View file

@ -22,8 +22,9 @@ from twisted.internet import glib2reactor
glib2reactor.install()
# XXX: We need to configure logs before any log method is used, so here is the best place.
from sat.core.constants import Const as C
from sat.core import log
log.satConfigure()
log.satConfigure(C.LOG_BACKEND_TWISTED)
# XXX: SAT must be imported after log configuration, because it write stuff to logs
from sat.core.sat_main import SAT