<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [slf4j-user] How to use Debug....</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sorry for the typo! Properties file should have the log level set to debug.<BR>
Thanks and Regards,<BR>
Setu<BR>
-----------------------------------<BR>
setu@tibco.com<BR>
off: +91.20.30212111<BR>
mob: +91.9960692038<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: Setumadhav Kulkarni<BR>
To: 'user@slf4j.org' &lt;user@slf4j.org&gt;<BR>
Sent: Wed Oct 17 23:01:53 2007<BR>
Subject: Re: [slf4j-user] How to use Debug....<BR>
<BR>
You will have to set the debug level in your orperryies file to debug. I suspect it is set to info right now.<BR>
Thanks and Regards,<BR>
Setu<BR>
-----------------------------------<BR>
setu@tibco.com<BR>
off: +91.20.30212111<BR>
mob: +91.9960692038<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: user-bounces@slf4j.org &lt;user-bounces@slf4j.org&gt;<BR>
To: user@slf4j.org &lt;user@slf4j.org&gt;<BR>
Sent: Wed Oct 17 22:32:18 2007<BR>
Subject: [slf4j-user] How to use Debug....<BR>
<BR>
This is my testing code:<BR>
<BR>
import org.slf4j.Logger;<BR>
import org.slf4j.LoggerFactory;<BR>
<BR>
public class Wombat {<BR>
<BR>
&nbsp;&nbsp;&nbsp; final Logger logger = LoggerFactory.getLogger(Wombat.class);<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; Integer t;<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; Integer oldT;<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; public void setTemperature(Integer temperature) {<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oldT = t;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t = temperature;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logger.debug(&quot;Temperature set to {}. Old temperature was {}.&quot;, t, oldT);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(logger.isDebugEnabled());<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (temperature.intValue() &gt; 50) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logger.info(&quot;Temperature has risen above 50 degrees.&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
&nbsp;&nbsp;&nbsp; }<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wombat wombat = new Wombat();<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wombat.setTemperature(1);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wombat.setTemperature(55);<BR>
&nbsp;&nbsp;&nbsp; }<BR>
}<BR>
<BR>
<BR>
<BR>
Sadly, the output only have the information with log.info, nothing about logger.debug, and the output of (logger.isDebugEnabled()) is also false, can anyone tell me how to use debug??? Thanks a lot!@<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>