From: Mike S. <m...@pe...> - 2009-05-21 07:16:07
|
On Wed, 20 May 2009, Robert Jacobson wrote: > Here's what I did: 1. Make a file "trapper.pl". It's basically the > same as the example, except the Log4perl init, which uses a config > file (in this case, with a SIGHUP to re-read it): Looks ok at first glance, doesn't it produce the expected output? Please post the complete (runnable) code to make it easier to diagnose the problem. -- Mike Mike Schilli m...@pe... > > ######################################## > package Trapper; > ######################################## > > use Log::Log4perl qw(get_logger :levels); > > Log::Log4perl->init_and_watch("../log4perl.conf",'HUP'); > my $logger = get_logger("program.category"); > > > sub TIEHANDLE { > ... [etc] > > 2. In my perl program: > require "trapper.pl"; > tie (*STDERR, 'Trapper'); > > > HTH, > Rob > > > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > |