org.znerd.logdoc.AbstractLogBridge Maven / Gradle / Ivy
// See the COPYRIGHT file for copyright and license information
package org.znerd.logdoc;
import org.znerd.util.Preconditions;
import org.znerd.util.log.LogLevel;
/**
* Abstract base class for LogBridge
implementations. Implements the level property by storing it internally.
*/
public abstract class AbstractLogBridge implements LogBridge {
private LogLevel level = LogLevel.DEBUG;
@Override
public void setLevel(LogLevel level) {
Preconditions.checkArgument(level == null, "level == null");
this.level = level;
}
@Override
public LogLevel getLevel() {
return level;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy