> Hi, > > How to configure request logging to log to unix socket. I have tried to > run uwsgi with option 'req-logger = > socket:/home/www/sockets/uwsgi_req_log.socket' and listen it with 'nc -U > /home/www/sockets/uwsgi_req_log.socket', but I have had empty output in > nc. Have I done something wrong or it is bug? Thanks. > > Igor > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
I have never managed to use netcat with unix datagram sockets. >From the docs nc -l -U -u /tmp/yourlogger shoud work, but it dies after each packet on a mysterious "connect" error. socat works: socat UNIX-RECVFROM:/tmp/uwsgi.logger,fork STDOUT but generating a process after each logline is really overkill I suggest you to roll your own log server or use UDP sockets -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
