W dniu 10.01.2011 02:54, Fabio Farnesi pisze:
> Hi
>
> I'm a new happy uwsgi user. Now, my 1st question:
>
> wondering how to change the log stdout format, i've:
>
> [pid: 24305|app: 0|req: 189/920] xx.xx.xx.xx {36 vars in 750 bytes} [Mon
> Jan 10 02:49:39 2011] GET pippopappo => generated 118525 bytes in 1941
> msecs (HTTP/1.1 200) 3 headers in 194 bytes (0 async switches on async
> core 0)
>
> and i want
>
> xxx.xxx.x.xx.x. - - [10/Jan/2011:01:09:13 +0100] "GET /pipopappo
> HTTP/1.0" 200 58692 "Mozilla/5.0 (Windows; U; Windows NT 5.1; it;
> rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1 ( .NET CLR 3.5.30729)"
>
> In other words i want track the browser type cause i want analyze the
> traffic from search engine
>
> any suggestion?
>
Hi
uWSGI logs do not contain information about the browser and the like.
Unless you pass any, with the uwsgi_param from webserver.
I would see them rather as interesting information during the
application development not data to "analyze the traffic from search
engine".
If you want to stop uWSGI login requests add "-L"
(http://projects.unbit.it/uwsgi/wiki/Doc).
To get the logs for analyze the traffic from search engine. You must:
- first choose a webserver, or write your own ;) (Personally, I
recommend NginX).
- If you decide to use NginX - here are instructions on how to combine
it with uWSGI: http://projects.unbit.it/uwsgi/wiki/RunOnNginx
- In NginX configuration consider: access_log and log_format
http://wiki.nginx.org/HttpLogModule
--
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi