com.softicar.platform.common.core.logger.AbstractLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.logger;
import com.softicar.platform.common.core.logging.LogLevel;
public abstract class AbstractLogger implements ILogger {
@Override
public void verbose(String text, Object...arguments) {
log(LogLevel.VERBOSE, text, arguments);
}
@Override
public void info(String text, Object...arguments) {
log(LogLevel.INFO, text, arguments);
}
@Override
public void warning(String text, Object...arguments) {
log(LogLevel.WARNING, text, arguments);
}
@Override
public void error(String text, Object...arguments) {
log(LogLevel.ERROR, text, arguments);
}
@Override
public void log(LogLevel logLevel, String text, Object...arguments) {
doLog(logLevel, String.format(text, arguments));
}
protected abstract void doLog(LogLevel logLevel, String text);
}