
com.github.thorbenkuck.netcom2.logging.InfoLogging Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of NetCom2-Logging Show documentation
Show all versions of NetCom2-Logging Show documentation
NetCom2 Logging is a logging base, used within NetCom2
The newest version!
package com.github.thorbenkuck.netcom2.logging;
/**
* This {@link Logging} implementation ignores all calls up to info
*
* @version 1.0
* @since 1.0
*/
public class InfoLogging implements Logging {
private final Logging style;
public InfoLogging() {
this(new SystemDefaultStyleLogging());
}
public InfoLogging(final Logging base) {
this.style = base;
instantiated(this);
}
@Override
public boolean infoEnabled() {
return true;
}
@Override
public boolean warnEnabled() {
return true;
}
@Override
public boolean errorEnabled() {
return true;
}
@Override
public boolean fatalEnabled() {
return true;
}
/**
* This method call will be ignored!
* {@inheritDoc}
*/
@Override
public void trace(final Object o) {
}
/**
* This method call will be ignored!
* {@inheritDoc}
*/
@Override
public void debug(final Object o) {
}
/**
* {@inheritDoc}
*/
@Override
public void info(final Object o) {
style.info(o);
}
/**
* {@inheritDoc}
*/
@Override
public void warn(final Object o) {
style.warn(o);
}
/**
* {@inheritDoc}
*/
@Override
public void error(final Object o) {
style.error(o);
}
/**
* {@inheritDoc}
*/
@Override
public void fatal(final Object o) {
style.fatal(o);
}
/**
* {@inheritDoc}
*/
@Override
public void catching(final Throwable throwable) {
style.catching(throwable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy