Howdy, In the absence of specific configuration, loggers inherit settings from their parents, up the hierarchy to the root logger, which is typically explicitly configured.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Jacob Kjome [mailto:[EMAIL PROTECTED] >Sent: Friday, December 12, 2003 9:36 PM >To: Log4J Users List >Subject: Re: Default logging priorty/level of individual classes > >First, you should use <level> instead of <priority>. Second, the <root> is >just a special kind of <logger>, the root one. What you want to do is set >a separate <logger> (of which, BTW, will inherit from <root> so it will use ><root>'s appender). Something like this... > > ><logger name="com.MyClass"> > <level value="info"/> ></logger> ><root> > <level value="debug"> > <appender-ref ref="xmllayout"/> ></root> > >Also, normally, I set the <root> logger to a higher threshold like "warn" >and then set specific loggers to "info" or "debug". > >Jake > >At 04:54 PM 12/12/2003 -0700, you wrote: >>When my application starts I would like to default the logging >>priority/level of individual classes. I know how to set the root using >the >>following: >> >>... >> <root> >> <priority value = "debug" /> >> <appender-ref ref="xmllayout"/> >> </root> >>... >> >>But I would like to set the default logging priority of com.myClass to >INFO >>as follows...(but this doesn't work) >>... >> <root> >> <priority value = "debug" /> >> <priority class = "com.myClass" value ="info" /> >> <appender-ref ref="xmllayout"/> >> </root> >>... >> >>Anyone know what I am doing incorrectly? >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]