From: Steven L. <le...@wr...> - 2008-01-21 16:16:46
|
Goal: have a logger with no appenders normally used for trace-level output that would swamp the system: my $hugely_verbose_logger = L::L4p->get_logger ( 'VERBOSE::' . __PACKAGE__ ); ... $huggely_verbose_logger->trace( ... ); Our config's are in a static configuration, so I need to find some way of specifying: log4perl.appender.VERBOSE = # i.e., nada, no appenders by default Looking through all of the appenders, I cannot find a "no-op" (vs. one that has the overhead of formatting the data and then dumping it into /dev/null after putting in the effort to format the data). I also cannot seem to specify any collection of values for appender that override the root definition of screen. Q: Is there any way to create a logger whose root has an appender for, say, the screen but whose "log4per.appender.VERBOSE = <whatever>" entry fully overrides this with no appenders at all? thanx -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St le...@wr... Woodhaven, NY 11421 |