Logging formatter
This commit is contained in:
parent
fa22f4a7bc
commit
5959946a33
|
@ -62,8 +62,13 @@ except:
|
||||||
|
|
||||||
dbus_ml = DBusEcoreMainLoop()
|
dbus_ml = DBusEcoreMainLoop()
|
||||||
bus = dbus.SystemBus(mainloop=dbus_ml)
|
bus = dbus.SystemBus(mainloop=dbus_ml)
|
||||||
log = logging.getLogger()
|
log = logging.getLogger("econnman")
|
||||||
log.addHandler(logging.StreamHandler())
|
log_handler = logging.StreamHandler()
|
||||||
|
log_formatter = logging.Formatter(
|
||||||
|
"%(relativeCreated)d %(levelname)s %(name)s: %(message)s"
|
||||||
|
)
|
||||||
|
log_handler.setFormatter(log_formatter)
|
||||||
|
log.addHandler(log_handler)
|
||||||
|
|
||||||
manager = None
|
manager = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue