You should initialize Log::Log4perl in your main script (though you can do it also in any module). And in modules (subscripts as you call them) you can get logger using get_logger function. This function will return the same logger every time.
In reply to Re: log4perl - accessing logger in subscripts/subroutines?
by zwon
in thread log4perl - accessing logger in subscripts/subroutines?
by ck2021
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |