go ahead... be a heretic | |
PerlMonks |
Re: log4perl - accessing logger in subscripts/subroutines?by sathiya.sw (Monk) |
on Jan 19, 2009 at 06:29 UTC ( [id://737218]=note: print w/replies, xml ) | Need Help?? |
Not able to grasp the whole idea of yours... as there is a large chunk. Anyway, if you want to use the same logger in the all the places, it is simple. Way 1: store the log handle as a global variable to all the modules, and use it. Way 2: send the log handle to the subroutines where ever you want, and use that handle. When ever you use the same log handle by one of the above way, all your subroutine use the same properties for logging... thus you can achieve your requirement... got it ??
Sathiyamoorthy
In Section
Seekers of Perl Wisdom
|
|