mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-21 23:01:00 +00:00
sample logging config for various stator/worker modules as well as the web server
This commit is contained in:
parent
bf2f5378a5
commit
21c6b2a89f
1 changed files with 57 additions and 0 deletions
57
docker/logging_config.ini
Normal file
57
docker/logging_config.ini
Normal file
|
@ -0,0 +1,57 @@
|
|||
[handlers]
|
||||
keys = out, error
|
||||
|
||||
[handler_out]
|
||||
class = StreamHandler
|
||||
formatter = generic
|
||||
args = (sys.stdout,)
|
||||
|
||||
[handler_error]
|
||||
class = StreamHandler
|
||||
formatter = generic
|
||||
args = (sys.stderr,)
|
||||
|
||||
[formatters]
|
||||
keys = generic
|
||||
|
||||
[formatter_generic]
|
||||
format = [%(levelname)s] [%(name)s]: %(message)s
|
||||
|
||||
[loggers]
|
||||
keys = root, gunicorn, django, takahe_core, takahe_stator, takahe_users, takahe_activities
|
||||
|
||||
[logger_root]
|
||||
handlers = error
|
||||
level = WARNING
|
||||
|
||||
[logger_gunicorn]
|
||||
handlers = error
|
||||
qualname = gunicorn.error
|
||||
level = ERROR
|
||||
propagate = 0
|
||||
|
||||
[logger_django]
|
||||
handlers = error
|
||||
qualname = django
|
||||
level = ERROR
|
||||
propagate = 0
|
||||
|
||||
[logger_takahe_core]
|
||||
handlers = out
|
||||
qualname = core
|
||||
level = INFO
|
||||
|
||||
[logger_takahe_stator]
|
||||
handlers = out
|
||||
qualname = stator
|
||||
level = INFO
|
||||
|
||||
[logger_takahe_users]
|
||||
handlers = out
|
||||
qualname = users
|
||||
level = INFO
|
||||
|
||||
[logger_takahe_activities]
|
||||
handlers = out
|
||||
qualname = activities
|
||||
level = INFO
|
Loading…
Reference in a new issue