Hi i am new to slf4j and have a few questions. I could not find out how to search the mailing list for older messages that might contain this subject. And i have searched everywhere online :)..almost.<br><br>1. Where do log files go when using the slf4j.Logger, f.ex;<br>
<br>import org.slf4j.Logger;<br>import org.slf4j.LoggerFactory;<br><br>public class Testing {<br> <br> private static final Logger LOGGER = LoggerFactory.getLogger(Testing.class);<br><br> public static void main(String[] args) {<br>
<br> int value = 10;<br> LOGGER.debug("the variable value ="+value);<br> LOGGER.debug("The value of value = "+value);<br> }<br>}<br><br>I am currently using eclipse, project structure and have placed a logback.xml file under the project root folder. The logback.xml file is an example file from the slf4j homepage;<br>
<configuration><br><br> <appender name="FILE" class="ch.qos.logback.core.FileAppender"><br> <file>"c:\testlog1.log"</file><br><br> <layout class="ch.qos.logback.classic.PatternLayout"><br>
<Pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</Pattern><br> </layout><br> </appender><br><br> <root><br> <level value="debug" /><br> <appender-ref ref="FILE" /><br>
</root><br></configuration><br><br>No complaining about the slf4j jar files either.<br>The small application runs fine but i suspect that my logback.xml file is not in the right place and not read at all. I have tried to put it in several locations (JAVA_HOME, path, src folder etc). to no avail. I also did a search trough the whole disc, but no such file(testlog1.log). Any ideas what i am doing wrong. By the way i am on WinXP SP2 with JDK1.6.11. Installed.<br>
<br>Regards Tom Martin<br>