[slf4j-user] Logging to file with slf4j.Logger. Where do log file go?

Ceki Gulcu ceki at qos.ch
Fri Mar 20 11:08:42 CET 2009


Tom,

It appears that you have misunderstood the purpose of SLF4J. If you
place slf4j-jdk14-1.5.6.jar then slf4j-api will bind with
java.util.logging. Logback will not be used. Only if you place
logback-core.jar and logback-classic.jar on your class path (but not
slf4j-jdk14-1.5.6.jar) will SLF4J API bind with logback. SLF4J binds
with one and only one underlying logging API (per JVM launch).

HTH,


Tom Martin Norvang wrote:
> Thank you for the mail info. If you are asking about wich slf4j jar i 
> placed the slf4j-api-1.5.6.jar and slf4j-jdk14-1.5.6.jar at the root: 
> c:\ alongside the logback.xml. The classpath variable contains a dot (.) 
> and a ....\jre\ext\QTJava.zip. So i am not sure if the . (dot) 
> represents the root directory og current disk or system disk where OS 
> recide, i have os on E: and another disk c:. But anyways i did add the 
> jars under project properties as external jars and the Test class 
> compiles and runs without error, it just that no log file appear anywhere.
> 
> Tom Martin Norvang
> 
-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list