diff --git a/docker/logging_config.ini b/docker/logging_config.ini new file mode 100644 index 0000000..d680ab7 --- /dev/null +++ b/docker/logging_config.ini @@ -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