com.teamscale.report.util.CommandLineLogger Maven / Gradle / Ivy
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();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy