[uWSGI] log format

Łukasz Wróblewski admin at hostowisko.pl
Tue Jul 13 06:44:44 CEST 2010


currently logs look something like this:

"""
gracefully (RE)spawned uWSGI master process (pid: 5833)
spawned uWSGI worker 1 (pid: 11704)
spawned uWSGI worker 2 (pid: 11705)
...gracefully killing workers...
Gracefully killing worker 11704...
Gracefully killing worker 11705...
binary reloading uWSGI...
closing all fds > 2 (_SC_OPEN_MAX = 1024)...
running ./uwsgi_x32
...fd 3 is a socket, i suppose this is a graceful reload of uWSGI, i will try to do my best...
*** Starting uWSGI 0.9.5.4 (32bit) on [Mon Jul 12 11:50:38 2010] ***
compiled with version: 4.4.3
Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:28:26).
[GCC 4.4.3]
your memory page size is 4096 bytes
allocated 372 bytes (0 KB) for 1 request's buffer.
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
...getting the applications list from the 'start' module...
uwsgi.applications dictionary is not defined, trying with the "applications" one...
applications dictionary is not defined, trying with the "application" callable.
initializing [/] app...
application 0 (/) ready
setting default application to 0
gracefully (RE)spawned uWSGI master process (pid: 5833)
spawned uWSGI worker 1 (pid: 12837)
spawned uWSGI worker 2 (pid: 12838)
SIGPIPE: writing to a closed pipe/socket/fd !!!
writev(): Broken pipe [wsgi_headers.c line 154]
SIGPIPE: writing to a closed pipe/socket/fd !!!
write(): Broken pipe [pyutils.c line 76]
SIGPIPE: writing to a closed pipe/socket/fd !!!
writev(): Broken pipe [wsgi_headers.c line 154]
SIGPIPE: writing to a closed pipe/socket/fd !!!
write(): Broken pipe [pyutils.c line 76]
SIGPIPE: writing to a closed pipe/socket/fd !!!
writev(): Broken pipe [wsgi_headers.c line 154]
SIGPIPE: writing to a closed pipe/socket/fd !!!
write(): Broken pipe [pyutils.c line 76]
SIGPIPE: writing to a closed pipe/socket/fd !!!
writev(): Broken pipe [wsgi_headers.c line 154]
SIGPIPE: writing to a closed pipe/socket/fd !!!
write(): Broken pipe [pyutils.c line 76]
"""

whether it is possible to do something like this:

"""
2010-07-13 06:40:02,078 [INFO]   gracefully (RE)spawned uWSGI master process (pid: 5833)
2010-07-13 06:40:02,078 [DEBUG]  spawned uWSGI worker 1 (pid: 11704)
2010-07-13 06:40:02,078 [DEBUG]  spawned uWSGI worker 2 (pid: 11705)
2010-07-13 06:40:02,078 [INFO]   ...gracefully killing workers...
...
"""

uWSGI rinsed to log an error and would like to know what time it happened exactly.


-- 
Łukasz Wróblewski
DDarko.org
www.hostowisko.pl - profesjonalny i tani hosting
www.nri.pl - nowoczesne rozwiązania internetowe
www.katalog-polskich-firm.pl - najlepszy darmowy katalog firm


More information about the uWSGI mailing list