com.teamscale.report.util.ILogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of report-generator Show documentation
Show all versions of report-generator Show documentation
Utilities for generating JaCoCo and Testwise Coverage reports
package com.teamscale.report.util;
/**
* Minimal logging interface.
*
* We use this to work around some strange problems when using log4j from the Teamscale Gradle plugin.
*/
public interface ILogger {
/** Logs at debug level. */
void debug(String message);
/** Logs at info level. */
void info(String message);
/** Logs at warning level. */
void warn(String message);
/** Logs at warning level. The given {@link Throwable} may be null. */
void warn(String message, Throwable throwable);
/** Logs at error level. */
void error(Throwable throwable);
/** Logs at error level. The given {@link Throwable} may be null. */
void error(String message, Throwable throwable);
/** Logs at error level. */
default void error(String message) {
error(message, null);
}
}