
com.atlassian.clover.JDKLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clover-runtime Show documentation
Show all versions of clover-runtime Show documentation
Clover's runtime library - required by code instrumented by Clover.
Clover is an award-winning code coverage and testing tool for Java and Groovy.
It integrates easily with Maven, Ant, Grails, Eclipse and IntelliJ IDEA
as well as with continuous integration servers such as Bamboo, Jenkins or Hudson.
The newest version!
package com.atlassian.clover;
import java.util.logging.Level;
public class JDKLogger extends Logger {
private final java.util.logging.Logger instance;
private static final java.util.logging.Level[] LOG_LEVELS = new Level[] {
Level.SEVERE,
Level.WARNING,
Level.INFO,
Level.FINE,
Level.FINER };
public JDKLogger(String category) {
instance = java.util.logging.Logger.getLogger(category);
}
@Override
public void log(int level, String msg, Throwable t) {
instance.log(LOG_LEVELS[level], msg, t);
}
public static class Factory implements Logger.Factory {
@Override
public Logger getLoggerInstance(String category) {
return new JDKLogger(category);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy