1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-19 08:05:56 -05:00

Updated loggin timestamp to include []

Added timestamp inside of [] for easier parsing
This commit is contained in:
Hemna 2020-12-15 11:10:46 -05:00
parent 21253ff6e7
commit 8a6273867c

View File

@ -676,7 +676,7 @@ def setup_logging(loglevel, quiet):
log_level = levels[loglevel]
LOG.setLevel(log_level)
log_format = "%(asctime)s [%(threadName)-12s] [%(levelname)-5.5s]" " %(message)s"
log_format = "[%(asctime)s] [%(threadName)-12s] [%(levelname)-5.5s]" " %(message)s"
date_format = "%m/%d/%Y %I:%M:%S %p"
log_formatter = logging.Formatter(fmt=log_format, datefmt=date_format)
fh = RotatingFileHandler(