David, one way you can do this is by attaching a filter to your TraceApp
appender, like this
log4perl.filter.NotIfDevIP = sub { $ENV{REMOTE_ADDR} eq '192.168.0.34' ?
0 : 1 }
log4perl.appender.TraceApp.Filter = NotIfDevIP
See 'perldoc Log::Log4perl::Filter'
On Mon, Sep 19, 2011 at 9:39 PM
This is kind of annoying thing that I noticed recently, if you do
$logger->info($msg) and $msg is
undefined then you get a warning:
perl -W -Ilib -e 'use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init($INFO); INFO(undef)'
Use of uninitialized value in join or string at lib/Log/Log4perl/Appe
Martin, see 'perldoc Log4perl::Appender::File
create_at_logtime
The file appender typically creates its logfile in its constructor, i.e.
at Log4perl "init()" time. This
is desirable for most use cases, because it makes sure that file
permission problems get detected right
away, and not after day