On Thu, 21 May 2009, Richard Burton wrote: > It is more of a general question so that I can build it in to my code; > I don't have a specific example?
Maybe I misunderstood, but you said "I have tried but failed", and from what I saw, you're doing everything correctly. -- Mike Mike Schilli m...@perlmeister.com > > Does that help? > > Richard > >> -----Original Message----- >> From: Mike Schilli [mailto:m...@perlmeister.com] >> Sent: 20 May 2009 22:25 >> To: Richard Burton >> Cc: log4perl-devel@lists.sourceforge.net >> Subject: Re: [log4perl-devel] Log4perl and catching unhandle >> exceptions but not using 'easy' mode >> >> On Wed, 20 May 2009, Richard Burton wrote: >> >>> I can catch this using stealth as loggers outlined in >>> >> http://search.cpan.org/~mschilli/Log-Log4perl/lib/Log/Log4perl >> /FAQ.pm#So >>> >> me_module_prints_messages_to_STDERR._How_can_I_funnel_them_to_ >> Log::Log4p >>> erl? >>> >>> but the example assumes you are using the "easy" >> configuration method. >> >> Actually, this will work unmodified if you're using a >> configuration file >> instead. >> >> You're probably talking about the DEBUG(...) macro used in the code >> example, which comes with :easy, but this is really unrelated to >> easy_init() and can be used with init($conf_file) as well. >> If you don't want the stealth loggers, get a logger and send >> your debug >> message via >> >> use Log::Log4perl qw(get_logger); >> >> get_logger()->debug("my debug message"); >> >> instead. >> >>> The question I have is can I do a similar thing but use an external >>> configuration file for log4perl? I have tried but failed so would >>> appreciate any guidance? >> >> This should work, what was the problem/error message you encountered? >> >> -- Mike >> >> Mike Schilli >> m...@perlmeister.com >> > > ------------------------------------------------------------------------------ > 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 > log4perl-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > ------------------------------------------------------------------------------ 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 log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel