Migrated logging to SLF4J

This commit is contained in:
Patrick Gotthard 2014-04-14 19:02:50 +02:00
parent 65b7799c96
commit ef9345d55e
4 changed files with 18 additions and 5 deletions

View file

@ -106,8 +106,8 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>

View file

@ -120,9 +120,9 @@ public class DateParser {
if (pp.getIndex() != sDate.length()) {
d = null;
}
// System.out.println("pp["+pp.getIndex()+"] s["+sDate+" m["+masks[i]+"] d["+d+"]");
// LOG.debug("pp["+pp.getIndex()+"] s["+sDate+" m["+masks[i]+"] d["+d+"]");
} catch (final Exception ex1) {
// System.out.println("s: "+sDate+" m: "+masks[i]+" d: "+null);
// LOG.debug("s: "+sDate+" m: "+masks[i]+" d: "+null);
}
}
return d;

View file

@ -99,7 +99,7 @@ public class TestSyndFeedRSS090 extends SyndFeedTest {
public void testEntryDescription() throws Exception {
// I think this should be should work, but it can't seem to find the
// description
// System.out.println(((SyndEntry)getCachedSyndFeed().getEntries().get(0)).getDescription());
// LOG.debug(((SyndEntry)getCachedSyndFeed().getEntries().get(0)).getDescription());
}
@Override

View file

@ -0,0 +1,13 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<root level="warn">
<appender-ref ref="STDOUT" />
</root>
</configuration>