fix logging

This commit is contained in:
Jack Robison 2022-05-18 14:41:34 -04:00
parent f8022c9c9a
commit 706971edbe
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -47,7 +47,7 @@ STREAM_TYPES = {
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")
handler = logging.handlers.RotatingFileHandler(log_path, maxBytes=1024*1024*5, backupCount=2)
handler.setFormatter(fmt)