All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.teamscale.report.util.CommandLineLogger Maven / Gradle / Ivy

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();
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy