Migrated logging to SLF4J
This commit is contained in:
parent
65b7799c96
commit
ef9345d55e
4 changed files with 18 additions and 5 deletions
4
pom.xml
4
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
13
src/test/resources/logback-test.xml
Normal file
13
src/test/resources/logback-test.xml
Normal 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>
|
Loading…
Reference in a new issue