Pipe support to error log(server.errorlog), support of multiple workers
Hi, i have multiple workers, and only one worker can write error log.
I don't have this problem with writing of access logs because mod_accesslog support this:
"if the name starts with a '|' the rest of the name is taken as the name of a process which will be spawn and will get the output
accesslog.filename = "|/usr/sbin/cronolog /web/logs/%Y/%m/%d/access.log"
How about to add same feature to "server.errorlog".
Error logs are very important to me and I can't ignore them.
Updated by Anonymous over 13 years ago
please note that pipe logging appears to bog down lighty seriously under high load.
i tried cronolog for accesslog on a server receiving ~60 hits/sec (lighty 1.4.15 back then i think)
and it would quickly slow down to a crawl.
out of curiousity i later tried and fed the normal on-disk accesslog to cronolog in realtime
with "tail -f" - worked for days without problems.
i guess buffering is needed to make pipe logging feasible for high traffic servers.
Also available in: Atom