add nightly CI/CD

This commit is contained in:
hay-kot
2021-08-07 20:22:22 -08:00
parent 886d1b7a50
commit ff2b681980
9 changed files with 146 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
import logging
import sys
from dataclasses import dataclass
from functools import lru_cache
@@ -33,11 +34,16 @@ def get_logger_config():
logger_file=None,
)
output_file_handler = logging.FileHandler(LOGGER_FILE)
handler_format = logging.Formatter(LOGGER_FORMAT, datefmt=DATE_FORMAT)
output_file_handler.setFormatter(handler_format)
# Stdout
stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setFormatter(handler_format)
return LoggerConfig(
handlers=[
logging.FileHandler(LOGGER_FILE),
logging.Formatter(LOGGER_FORMAT, datefmt=DATE_FORMAT),
],
handlers=[output_file_handler, stdout_handler],
format="%(levelname)s: %(asctime)s \t%(message)s",
date_format="%d-%b-%y %H:%M:%S",
logger_file=LOGGER_FILE,