Torsten Foertsch wrote:
[...]
On Linux the ErrorLog of the base server is always opened on file
descriptor 2 that means stderr. So, a reader that reads this stream
gets everything (under normal conditions) that Apache, Perl or any XS
module writes to stderr.
Hi Torsten, just jumping in here and hooking into the above.
How does it work with Apache children/threads that may be acting as a
VirtualHost's having their own ErrorLog ?
My experience is that anything logged by mod_perl modules running "in" a
VirtualHost using explicit warn() or $r->log_error() or $r->log->info()
etc.. ends up in the VirtualHost's ErrorLog, but some run-time messages like
"Use of uninitialized value in concatenation (.) or string at .." end up
in the "main" Apache error log. How does that come about ?