in reply to Re^2: Change email config for Log::Dispatch::Email::MailSender
in thread Change email config for Log::Dispatch::Email::MailSender
Have you tried reading the Log::Log4perl documentation? The qw operator is documented in perlop: qw. Importing from modules is documented in perlfunc: use.
Hi afoken, I am not the OP, I was trying to engage the OP and inspire a lightbulb moment ... works better when the OP is around :)
Anyway, changing configuration at runtime is not how you're supposed to work it :)
use Log::Log4perl qw/ get_logger /; ... get_logger("Winmail")->info("yay!"); ... get_logger("Failmail")->info("boo!"); ... get_logger("Bobmail")->info("get to work!");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Change email config for Log::Dispatch::Email::MailSender ( log4perl email dynamic subject)
by tonytronics (Initiate) on May 06, 2015 at 20:32 UTC | |
by Anonymous Monk on May 07, 2015 at 01:19 UTC |
In Section
Seekers of Perl Wisdom