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

org.znerd.logdoc.AbstractLogBridge Maven / Gradle / Ivy

There is a newer version: 1.0-rc3
Show newest version
// 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