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();
System.err.print(e.getMessage());
logger.debug("foo {}", "bar", e);
LOG.info("foo {} {}", e.getMessage(), e);
+ // Multi line
+ LOG.info("foo {} "
+ + "bar {}");
}
}
LOG.warn("foo", string);
LOG.warn("foo {}", string);
LOG.warn("foo {}", string, e);
+ LOG.warn(
+ "Unable to parse configuration snapshot from {}. Initial config from {} will be IGNORED in this run. " +
+ "Note that subsequent config files may fail due to this problem. " +
+ "Xml markup in this file needs to be fixed, for detailed information see enclosed exception.",
+ string, string, e);
+ LOG.warn("foo" + string);
+ LOG.warn("foo" + "bar");
+ LOG.warn("foo" + "bar" + "bar");
}
}