On Thu 12 Nov 2009, Shibi NS wrote: > Configuration error log is in my applications httpd config file is > > > ErrorLog = "'| rotatelogs \log\error_log 1M "' > > But if print something on STDERR from mod_perl program , Say debug > print (print STDERR "DEBUG ";) this is going to \log\error_log > instead of \log\error_log.NNN > > Is this is a mod perl issue or i am doing something wrong
I suspect this ErrorLog directive resides inside a VHost? STDERR is bound to the programs notion of file descriptor 2 or whatever it is on windows, not to the ErrorLog. If you want to write to a VHost's ErrorLog use $r->log &co. See also http://www.gossamer-threads.com/lists/modperl/modperl/99241 http://www.gossamer-threads.com/lists/modperl/modperl/99219 http://www.gossamer-threads.com/lists/modperl/modperl/99504 In addition to what is said here http://www.gossamer-threads.com/lists/modperl/modperl/99248#99248 another way to capture STDERR could be a PERLIO layer or to tie STDERR to something. Torsten -- Need professional mod_perl support? Just hire me: torsten.foert...@gmx.net