Here is a configuration file that should help. You basically log.INFO() and your done. You set either the appender's threshhold to only accept certain levels and/or set categories at certain log levels. For instance, you normally define your log with your namespace. This allows you to control what levels get logged by the hiearchy of your namespace.
-----Original Message-----
From: Philippe Lavoie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 10:29 AM
To: [email protected]
Subject: Having two levels of logging

Hi,

 

As my code gets better and better. I'd like to put some classes to a "INFO" level, the rest should stay at a debug level.

 

What kind of configuration do I need to do to be able to set some namespaces to "info" and the root to "debug"?

 

I'm looking into the new site and finding information there is rather difficult L  I can't find a tutorial, I can't find a description of the configuration tags, etc. If you know how to get to that information, please let me know.

 

Also, that site mentions XmlConfigurator instead of DomConfigurator in the documentation. That didn't work out too well when I tried it J Can someone change the referens to XmlConfigurator to DomConfigurator?

 

Thanks for any help.

 

Philippe Lavoie
 
   Cactus Commerce         eBusiness. All Business.
 Tel 819.778.0313 x302 * 888.CACTUS.0 * Fax 819.771.0921
www.cactuscommerce.com [EMAIL PROTECTED]

 

Attachment: logging.config
Description: Binary data

Reply via email to