fix logging
This commit is contained in:
parent
f8022c9c9a
commit
706971edbe
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ STREAM_TYPES = {
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(log_path: str):
|
def setup_logging(log_path: str):
|
||||||
log = logging.getLogger('scribe')
|
log = logging.getLogger()
|
||||||
fmt = logging.Formatter("%(asctime)s %(levelname)-4s %(name)s:%(lineno)d: %(message)s")
|
fmt = logging.Formatter("%(asctime)s %(levelname)-4s %(name)s:%(lineno)d: %(message)s")
|
||||||
handler = logging.handlers.RotatingFileHandler(log_path, maxBytes=1024*1024*5, backupCount=2)
|
handler = logging.handlers.RotatingFileHandler(log_path, maxBytes=1024*1024*5, backupCount=2)
|
||||||
handler.setFormatter(fmt)
|
handler.setFormatter(fmt)
|
||||||
|
|
Loading…
Reference in a new issue