New LogMessageExtractorCheck which writes out TXT report of all loggers
[yangtools.git] / common / checkstyle-logging / src / test / java / org / opendaylight / yangtools / checkstyle / CheckLoggingTestClass.java
index f038dda5f5bc7ea74d8fc86a0d06395e77e04df7..ba3a4da0678af9927f5c9206488600f6ce577a1b 100644 (file)
@@ -11,6 +11,7 @@ package org.opendaylight.yangtools.checkstyle;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+// NOTE:  This test class contains intentional checkstyle issues, for CheckstyleTest
 public class CheckLoggingTestClass {
     final Logger logger = LoggerFactory.getLogger(CheckstyleTest.class);
     private static final java.util.logging.Logger LOG2 = java.util.logging.Logger.getGlobal();
@@ -24,6 +25,9 @@ public class CheckLoggingTestClass {
             System.err.print(e.getMessage());
             logger.debug("foo {}", "bar", e);
             LOG.info("foo {} {}", e.getMessage(), e);
+            // Multi line
+            LOG.info("foo {} "
+                    + "bar {}");
         }
     }