On 09/19/2011 11:37 PM, Kevin Goess wrote:
> See 'perldoc Log::Log4perl::Filter'
On 09/20/2011 12:20 AM, Mike Schilli wrote:
> The Log::Log4perl::Filter manpage explains their use in detail.
That solved it. Thanks! :-)
2011-09-20 12:38:06 dpchrist@p43400e ~
$ grep Trace perl-src/50-
On Mon, 19 Sep 2011, David Christensen wrote:
> I would prefer to enable/ disable TraceApp based on $ENV{REMOTE_ADDR}
> rather than doing all the work and throwing non-192.168.0.34 hits down
> /dev/null, but I couldn't figure out how to implement this idea.
Hi David,
you can use Log4perl's custo
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