Where $newsub is an object, the following fails to work as I expected it to:
$logger->info("Created sub->", $newsub->ptn);
Since my log is a text file, this yields the following line in the file:
2010/05/10 16:38:59 INFO> cmsIMsubs-S.pl:176 main::getSubs - Created
sub->CMS::Schema::Result::Subs
tands, the output of this script is:
[2011-07-22 10:58:41] script.pl INFO: Calling logTest()
[2011-07-22 10:58:41] Package ERROR: error message
What I want is:
[2011-07-22 10:58:41] script.pl INFO: Calling logTest()
[2011-07-22 10:58:41] Package INFO: info message
[2