From: Ronald F. <yn...@mm...> - 2009-03-23 14:13:21
|
I'm creating loggers with easy_init (deliberately using no initialization file), and found that they are always created in 'clobber' mode. After studying the code, I found I could change the mode of a specific logger to 'clobber' using Log::Log4perl->appender_by_name('app002')->{mode}='append'; This works, but it is a pretty bad solution, since I'm fiddling around with the implementation of Log::Log4perl::Appender::File. Is there a better way to set the mode? Just setting mode => 'append' in easy_init did not help. Ronald -- Ronald Fischer <ro...@em...> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) |