1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-24 02:36:55 -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_level = levels[loglevel]
LOG.setLevel(log_level) 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" date_format = "%m/%d/%Y %I:%M:%S %p"
log_formatter = logging.Formatter(fmt=log_format, datefmt=date_format) log_formatter = logging.Formatter(fmt=log_format, datefmt=date_format)
fh = RotatingFileHandler( fh = RotatingFileHandler(