Skip to content

Commit

Permalink
Update loggerutils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewd0123 committed Mar 22, 2024
1 parent 1a6a699 commit 1f115f5
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions test_manager/features/utils/loggerutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,7 @@

'version': 1,
'disable_existing_loggers': False,
'handlers': {
'formatted_console': {
'class': 'logging.StreamHandler',
'level': 'INFO',
'formatter': 'detailed',
'stream': 'ext://sys.stdout',
},
'formatted_file': {
'class': 'logging.handlers.RotatingFileHandler',
'level': 'INFO',
'formatter': 'detailed',
'filename': "logs" + os.path.sep + "uitests_" + strftime("%Y-%m-%d_%H_%M_%S") + ".log",
'mode': 'a',
'maxBytes': 10485760,
'backupCount': 5,
},
'unformatted_console': {
'class': 'logging.StreamHandler',
'level': 'INFO',
'formatter': 'blank',
'stream': 'ext://sys.stdout',
},
'unformatted_file': {
'class': 'logging.handlers.RotatingFileHandler',
'level': 'INFO',
'formatter': 'blank',
'filename': "logs" + os.path.sep + "uitests_" + strftime("%Y-%m-%d_%H_%M_%S") + ".log",
'mode': 'a',
'maxBytes': 10485760,
'backupCount': 5,
},
},
'handlers': {},
'formatters': {
'detailed': {
'format': '[%(levelname)s] : %(asctime)s : %(filename)s : %(funcName)s:%(lineno)d : %(message)s',
Expand All @@ -81,16 +50,7 @@
'format': '',
},
},
'loggers': {
'formatted_log': {
'level': 'DEBUG',
'handlers': ['formatted_file', 'formatted_console']
},
'unformatted_log': {
'level': 'DEBUG',
'handlers': ['unformatted_file', 'unformatted_console']
},
}
'loggers': {}
}


Expand Down

0 comments on commit 1f115f5

Please sign in to comment.