com.teamscale.report.util.CommandLineLogger 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
The newest version!
package com.teamscale.report.util;
/** Logger that prints all output to the console. */
public class CommandLineLogger implements ILogger {
@Override
public void debug(String message) {
System.out.println(message);
}
@Override
public void info(String message) {
System.out.println(message);
}
@Override
public void warn(String message) {
System.err.println(message);
}
@Override
public void warn(String message, Throwable throwable) {
System.err.println(message);
if (throwable != null) {
throwable.printStackTrace();
}
}
@Override
public void error(Throwable throwable) {
throwable.printStackTrace();
}
@Override
public void error(String message, Throwable throwable) {
System.err.println(message);
if (throwable != null) {
throwable.printStackTrace();
}
}
}