Adjusted a few of the defaults in punctuation and in settings file. Logs are now in a more screen reader friendly format with timestamps and level coming after the actual information.
This commit is contained in:
@ -52,12 +52,15 @@ class debugManager():
|
||||
else:
|
||||
if not self._fileOpened and fileMode:
|
||||
self.openDebugFile()
|
||||
timestamp = str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f'))
|
||||
if onAnyLevel:
|
||||
msg = 'ANY '+ str(level) + ' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f'))
|
||||
levelInfo = 'INFO ANY'
|
||||
else:
|
||||
msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')
|
||||
)
|
||||
msg += ': ' + text
|
||||
levelInfo = str(level)
|
||||
|
||||
# Changed order: text comes first, then level and timestamp
|
||||
msg = text + ' - ' + levelInfo + ' ' + timestamp
|
||||
|
||||
if printMode:
|
||||
print(msg)
|
||||
if fileMode:
|
||||
|
Reference in New Issue
Block a user