Hello, Can I use the log_config_module (mod_log_config.so) with PerlProcessConnectionHandler somehow? Or do I have to use my own implementation?
After running the attached config, I expected to see some content both in test_log and test_log2... -- Radosław Zieliński <[EMAIL PROTECTED]>
LoadModule perl_module /usr/lib/apache/mod_perl.so LoadModule log_config_module /usr/lib/apache/mod_log_config.so Listen localhost:55555 ServerName localhost PidFile test.pid LogLevel debug CustomLog test_log "%t %a" SetHandler modperl PerlOptions +Log PerlProcessConnectionHandler FooConn PerlLogHandler FooLog <Perl> use Apache2::Const -compile => qw(OK); use Apache2::Connection (); use APR::Socket (); sub FooConn::handler { my $c = shift; $c->client_socket->send("pid $$\n"); return Apache2::Const::OK; } sub FooLog::handler { open my $log, '>>', 'test_log2' or die $!; print $log join "\t", $$, time, @_; close $log or warn $!; return Apache2::Const::OK; } </Perl> # vim: filetype=apache ts=2 sw=2 et
pgpjxX3I5PgIM.pgp
Description: PGP signature