From: Lee C. <lec...@ya...> - 2004-03-26 00:03:48
|
Hello Mike, Thanks for the response. > Another way of accomplishing the same thing would be > adding a signal > handler to your application, and using the > switch_file method of the > file appender, take the test case in t/026FileApp.t > as an example. Ahh... This is what I want to do. Change the logfile in the appender at runtime to add an extra application dependent option. Using the switch_file method worked just fine. (actually it's file_switch). The one problem I had was I was using Log::Dispatch::File instead of Log::Log4perl::Appender::File. Once I switched that the code from the test worked great. I still have one problem. How do I ask the Log::Log4perl::Appender::File for the current filename (without using the object's 'filename' attribute.)? I can patch Appender::File to add a get filename method. But is there something I'm missing? What do you think? Thanks for your help, Lee __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |