Skip to content

Commit

Permalink
add logging module to persist the log
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Oct 20, 2023
1 parent 6caa22b commit 7246d1d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions logging.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[loggers]
keys=root

[handlers]
keys=fileHandler

[formatters]
keys=simpleFormatter

[logger_root]
level=DEBUG
handlers=fileHandler

[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=simpleFormatter
args=('logs/xi_web_api.log',)

[formatter_simpleFormatter]
format=%(asctime)s %(name)s - %(levelname)s:%(message)s

0 comments on commit 7246d1d

Please sign in to comment.