Fixed some missing imports

This commit is contained in:
Dan
2024-05-05 17:15:14 -04:00
parent f9d455a071
commit 14d5ba091d
4 changed files with 6 additions and 4 deletions

View File

@@ -7,11 +7,11 @@ logging.basicConfig(level=logging.INFO,
datefmt='%Y-%m-%d %H:%M:%S')
# Create a rotating file handler which logs even debug messages
log_file = 'dolly.log'
log_file = 'nessa.log'
handler = RotatingFileHandler(log_file, maxBytes=100000, backupCount=3)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logger = logging.getLogger('Dolly')
logger = logging.getLogger('Nessa')
logger.addHandler(handler)
logger.setLevel(logging.INFO)