From: Matthew K. <mk...@ne...> - 2003-07-03 13:54:32
|
I want to be able to access the details of a given appender attached to = a logger. I can get the names of the appenders via = $logger->appender_names, but I would like to get access to the actual = appender details. Specifically I'm trying to get the filename which is = defined in a configuration file for a specific logger. I've been able = to hack it by adding the following line to the add_appender method in = Logger.pm $self->{appenders} =3D \%APPENDER_BY_NAME ; and then accessing it from the program for the logger Logfile by=20 $logger->{appenders}{Logfile}{appender}{filename} ; Is there a way of doing this that doesn't involve hacking the code ? If = not, would you consider adding this to the log4perl code ? |