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

liquibase.logging.core.DefaultLoggerConfiguration Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.logging.core;

import liquibase.configuration.AbstractConfigurationContainer;

/**
 * Configuration container for {@link liquibase.logging.core.DefaultLogger} properties
 */
public class DefaultLoggerConfiguration extends AbstractConfigurationContainer {

    public static final String LOG_LEVEL = "level";

    public DefaultLoggerConfiguration() {
        super("liquibase.defaultlogger");

        getContainer().addProperty(LOG_LEVEL, String.class)
                .setDescription("Logging level")
                .setDefaultValue("INFO");
    }

    public String getLogLevel() {
        return getContainer().getValue(LOG_LEVEL, String.class);
    }

    public DefaultLoggerConfiguration setLogLevel(String name) {
        getContainer().setValue(LOG_LEVEL, name);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy