gunicorn/examples/logging.conf
benoitc a0ccfa0c4f modify log_file option
Gunicorn should generally only bother writing its own log and let
the application handle the way it want to log its own errors.

Now the log_file option will be overriden by the gunicorn options
`--error-logfile` and `--access-logfile` if they are given.
2014-01-01 14:53:40 +01:00

79 lines
2.7 KiB
Plaintext

[loggers]
keys=root, gunicon.error, gunicon.access
[handlers]
keys=console, error_file, access_file
[formatters]
keys=generic, access
[logger_root]
level=INFO
handlers=console
[logger_gunicon.error]
level=INFO
handlers=error_file
propagate=1
qualname=gunicorn.error
[logger_gunicon.access]
level=INFO
handlers=access_file
propagate=0
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
2014-01-01 14:30:00 [15391] [INFO] Starting gunicorn 18.2
2014-01-01 14:30:00 [15391] [INFO] Listening at: http://127.0.0.1:8000 (15391)
2014-01-01 14:30:00 [15391] [INFO] Using worker: sync
2014-01-01 14:30:00 [15395] [INFO] Booting worker with pid: 15395
2014-01-01 14:30:00 [15396] [INFO] Booting worker with pid: 15396
2014-01-01 14:30:00 [15397] [INFO] Booting worker with pid: 15397
2014-01-01 14:30:02 [15397] [INFO] Worker exiting (pid: 15397)
2014-01-01 14:30:02 [15396] [INFO] Worker exiting (pid: 15396)
2014-01-01 14:30:02 [15391] [INFO] Handling signal: int
2014-01-01 14:30:02 [15391] [INFO] Shutting down: Master
2014-01-01 14:31:36 [15399] [INFO] Starting gunicorn 18.2
2014-01-01 14:31:36 [15399] [INFO] Listening at: http://127.0.0.1:8000 (15399)
2014-01-01 14:31:36 [15399] [INFO] Using worker: sync
2014-01-01 14:31:36 [15402] [INFO] Booting worker with pid: 15402
2014-01-01 14:31:36 [15403] [INFO] Booting worker with pid: 15403
2014-01-01 14:31:36 [15404] [INFO] Booting worker with pid: 15404
2014-01-01 14:31:37 [15403] [INFO] Worker exiting (pid: 15403)
2014-01-01 14:31:37 [15404] [INFO] Worker exiting (pid: 15404)
2014-01-01 14:31:37 [15399] [INFO] Handling signal: int
2014-01-01 14:31:37 [15399] [INFO] Shutting down: Master
2014-01-01 14:32:18 [15405] [INFO] Starting gunicorn 18.2
2014-01-01 14:32:18 [15405] [INFO] Listening at: http://127.0.0.1:8000 (15405)
2014-01-01 14:32:18 [15405] [INFO] Using worker: sync
2014-01-01 14:32:18 [15408] [INFO] Booting worker with pid: 15408
2014-01-01 14:32:18 [15409] [INFO] Booting worker with pid: 15409
2014-01-01 14:32:18 [15410] [INFO] Booting worker with pid: 15410
2014-01-01 14:32:20 [15410] [INFO] Worker exiting (pid: 15410)
2014-01-01 14:32:20 [15409] [INFO] Worker exiting (pid: 15409)
2014-01-01 14:32:20 [15405] [INFO] Handling signal: int
2014-01-01 14:32:20 [15405] [INFO] Shutting down: Master