|
|
@ -270,6 +270,7 @@ class Bureau(object):
|
|
|
|
logfile = os.path.join(basepath, self.prefix + ".log")
|
|
|
|
logfile = os.path.join(basepath, self.prefix + ".log")
|
|
|
|
logging.basicConfig(filename=logfile, level=log_level)
|
|
|
|
logging.basicConfig(filename=logfile, level=log_level)
|
|
|
|
self.log = logging.getLogger(self.prefix)
|
|
|
|
self.log = logging.getLogger(self.prefix)
|
|
|
|
|
|
|
|
self.log.setLevel(log_level)
|
|
|
|
log_printer = LogPrinter(self.smprint)
|
|
|
|
log_printer = LogPrinter(self.smprint)
|
|
|
|
log_format = logging.Formatter('LOG ${levelname} $name: $message', style='$')
|
|
|
|
log_format = logging.Formatter('LOG ${levelname} $name: $message', style='$')
|
|
|
|
log_printer.setFormatter(log_format)
|
|
|
|
log_printer.setFormatter(log_format)
|
|
|
|