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

io.dropwizard.logging.LoggerConfiguration Maven / Gradle / Ivy

There is a newer version: 5.0.0-alpha.5
Show newest version
package io.dropwizard.logging;

import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.spi.ILoggingEvent;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Individual {@link Logger} configuration
 */
public class LoggerConfiguration {

    @NotNull
    private String level = "INFO";

    @Valid
    @NotNull
    private List> appenders = Collections.emptyList();

    private boolean additive = true;

    public boolean isAdditive() {
        return additive;
    }

    public void setAdditive(boolean additive) {
        this.additive = additive;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public List> getAppenders() {
        return appenders;
    }

    public void setAppenders(List> appenders) {
        this.appenders = new ArrayList<>(appenders);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy