From: Kevin M. G. <cp...@go...> - 2007-08-29 17:27:44
|
Joachim, > Great piece of work, your Log::Log4perl module. Especially in mixed > Java/Perl environments, it makes log management a breeze. :-) Thanks! > I'd like to use a > function or method from Log::Log4perl to explicitly reload the > log4perl config file. How do I do that? Do I call init() again? Yeah, go ahead and call Log::Log4Perl->init all day. You'll get the same functionality that init_and_watch does when it reloads a changed config. > can I continue to use previously attained logger objects or do I > need to call get_logger() anew? Yes, all your $logger objects are still good (assuming you haven't un-supported them in your new config). The existing singleton objects stay the same, but the coderefs they contain have been updated with the new behavior. |