From: Richard L. <lip...@sp...> - 2004-10-17 15:30:51
|
I like Log::Log4perl more and more. But I have a problem changing loglevel in my program. I do this for config Log::Log4perl: my $log_conf = q/ log4perl.category = INFO, Logfile, Screen ... log4perl.logger.main = INFO log4perl.logger.Hob.ReorderFiles = INFO log4perl.logger.Hob.Inventory = INFO log4perl.logger.Hob.GetWishlist = INFO log4perl.logger.Hob.Harvester = INFO /; Now I want to set loglevel form Hob.Harvester to "DEBUG" because there is a record for this in my config(xml)file for the programm. How do I do that? I could do this: my $logger = Log::Log4perl->get_logger('Hob.Harvester'); $logger->more_logging(2); But I would love to do this: $logger->set_loglevel_to(DEBUG) Is there a chance? Thanks! Richard -- Richard Lippmann, Nuernberg, Germany Private: http://lena.franken.de Bussiness with Findus Internet-OPAC: http://www.findus-internet-opac.de |