Hi Evgeny,
Thanks for your feedback. On 03/29/2012 07:58 AM, Evgeny Turnaev wrote: > 2012/3/28 Gelonida N <[email protected]>: >> So far I made two attempts. >> Leightweight. Just log to the console and let uwsgi handle it. >> ---------------------------------------------------------------------- >> >> This works not too bad. however sometimes I'd like to separate uwsgi >> logs and python logs and this is a little tricky. >> >> If I could convince uwsgi to write stderr / stdout to separate files, >> then this could be good enough with following setup and wouldn't require >> an additional extra logging process. >> > > Sorry for intervene. IMO gateway logging is gateway logging and > application logging is application logging. I guess you're right. I was just a little lazy for an initial logging setup. After some thought about non atomicity and not being sure how it is handled and what wuld happen with multi line log messages when logging to stdout I abandoned this simplistic approach. > I dont know how uwsgi handles logging by default: through master or > each process logging by itself. If later then you logging though > stdout isn't atomic. Btw you can use python default logging (not > atomic also). You can write you own logging handler that will do > locking (really bad bad solution) or flush or open log file with > O_DSYNC. I will have to read about O_DSYNC. > You can write into separate files and merge them after, It's something I consider >you can log unto unix socket Another option which I tried already and which seems to work mostly fine. I just have to identify one strange pickle bug in my setup. > or syslog, even zeromq. Somehow these two options don't look too appealing to me, but perhaps it's just my lack of knowledge about syslog and ZMQ. There is a plenty of > options. It is a pity that there is no standard working out of box, Fully agree > but dont see any reasons why uwsgi should care about application > logging. > I finally arrived at the same conclusion. _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
