> Alternatively if I cant build msgpack with how I install with pip then I
> tried the below:
>
>  sudo /usr/local/bin/uwsgi   --pidfile /var/run/api.pid --loop gevent
> --socket 127.0.0.1:8030 --pythonpath /home/ubuntu/workspace/augno-api/app
> --pythonpath /home/ubuntu/workspace/augno-api --processes 1 --file
> /home/ubuntu/workspace/augno-api/wsgi.py --callable app -b 1024 --master
> --gevent 10 --enable-threads --listen 10 --touch-reload
> /home/ubuntu/workspace/augno-api/app/views.py --logger
> socket:127.0.0.1:1717
> --log-encoder 'json {"unix":${unix}, "msg":"${msg}",
> "date":"${strftime:%%d/%%m/%%Y %%H:%%M:%%S}"}'
>
> If I run the above..uwsgi does not run and prints the below
>
> [log-encoder] registered json {"unix":${unix}, "msg":"${msg}",
> "date":"${strftime:%%d/%%m/%%Y %%H:%%M:%%S}"}
>


when testing loggers, use the /dev/tty trick:

/uwsgi --logger file:/dev/tty --logger socket:127.0.0.1:1717 --log-encoder
'json {"unix":${unix}, "msg":"${msg}", "date":"${strftime:%d/%m/%Y
%H:%M:%S}"}' --socket 127.0.0.1:8030


in this way you will see result in both the terminal and your server.

Note: when on commandline, you do not need to escape %

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to