mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
49 lines
841 B
Plaintext
49 lines
841 B
Plaintext
[loggers]
|
|
keys=root, gunicorn_error, gunicorn_access
|
|
|
|
[handlers]
|
|
keys=console, error_file, access_file
|
|
|
|
[formatters]
|
|
keys=generic, access
|
|
|
|
[logger_root]
|
|
level=INFO
|
|
handlers=console
|
|
|
|
[logger_gunicorn_error]
|
|
level=INFO
|
|
handlers=error_file
|
|
propagate=1
|
|
qualname=gunicorn.error
|
|
|
|
[logger_gunicorn_access]
|
|
level=INFO
|
|
handlers=access_file
|
|
propagate=1
|
|
qualname=gunicorn.access
|
|
|
|
[handler_console]
|
|
class=StreamHandler
|
|
formatter=generic
|
|
args=(sys.stdout, )
|
|
|
|
[handler_error_file]
|
|
class=logging.FileHandler
|
|
formatter=generic
|
|
args=('/tmp/gunicorn.error.log',)
|
|
|
|
[handler_access_file]
|
|
class=logging.FileHandler
|
|
formatter=access
|
|
args=('/tmp/gunicorn.access.log',)
|
|
|
|
[formatter_generic]
|
|
format=%(asctime)s [%(process)d] [%(levelname)s] %(message)s
|
|
datefmt=%Y-%m-%d %H:%M:%S
|
|
class=logging.Formatter
|
|
|
|
[formatter_access]
|
|
format=%(message)s
|
|
class=logging.Formatter
|