From ef9345d55e180fbbc8677067589eba542cae405b Mon Sep 17 00:00:00 2001 From: Patrick Gotthard Date: Mon, 14 Apr 2014 19:02:50 +0200 Subject: [PATCH] Migrated logging to SLF4J --- pom.xml | 4 ++-- .../com/sun/syndication/io/impl/DateParser.java | 4 ++-- .../syndication/unittest/TestSyndFeedRSS090.java | 2 +- src/test/resources/logback-test.xml | 13 +++++++++++++ 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 src/test/resources/logback-test.xml diff --git a/pom.xml b/pom.xml index 88c762e..fe40e3f 100644 --- a/pom.xml +++ b/pom.xml @@ -106,8 +106,8 @@ slf4j-api - org.slf4j - slf4j-simple + ch.qos.logback + logback-classic test diff --git a/src/main/java/com/sun/syndication/io/impl/DateParser.java b/src/main/java/com/sun/syndication/io/impl/DateParser.java index 4e2e294..1372aef 100644 --- a/src/main/java/com/sun/syndication/io/impl/DateParser.java +++ b/src/main/java/com/sun/syndication/io/impl/DateParser.java @@ -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; diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java b/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java index 95e5a3f..34b40cb 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java +++ b/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java @@ -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 diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml new file mode 100644 index 0000000..44dea42 --- /dev/null +++ b/src/test/resources/logback-test.xml @@ -0,0 +1,13 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n + + + + + + + + \ No newline at end of file