Last active
March 9, 2023 08:27
-
-
Save philippegirard/e842d29d22bbc340a9d0e19dca3328d4 to your computer and use it in GitHub Desktop.
FastAPI logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[loggers] | |
keys=root,uicheckapp | |
[handlers] | |
keys=consoleHandler,detailedConsoleHandler | |
[formatters] | |
keys=normalFormatter,detailedFormatter | |
[logger_root] | |
level=INFO | |
handlers=consoleHandler | |
[logger_uicheckapp] | |
level=DEBUG | |
handlers=detailedConsoleHandler | |
qualname=uicheckapp | |
propagate=0 | |
[handler_consoleHandler] | |
class=StreamHandler | |
level=DEBUG | |
formatter=normalFormatter | |
args=(sys.stdout,) | |
[handler_detailedConsoleHandler] | |
class=StreamHandler | |
level=DEBUG | |
formatter=detailedFormatter | |
args=(sys.stdout,) | |
[formatter_normalFormatter] | |
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s | |
[formatter_detailedFormatter] | |
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s call_trace=%(pathname)s L%(lineno)-4d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment