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

com.cisco.oss.foundation.logging.transactions.ConfigurationUtil Maven / Gradle / Ivy

Go to download

This project is the logging log4j implementation library in the cisco vss foundation runtime

There is a newer version: 1.2.1-2
Show newest version
package com.cisco.oss.foundation.logging.transactions;

import com.cisco.oss.foundation.configuration.ConfigurationFactory;
import com.cisco.oss.foundation.configuration.FoundationConfigurationListener;

/**
 * Created by Nuna on 27/10/2015.
 */
public enum ConfigurationUtil implements FoundationConfigurationListener {

    INSTANCE;

    private boolean verbose = false;

    ConfigurationUtil() {
        refresh();
    }

    @Override
    public void configurationChanged() {
        refresh();
    }

    private void refresh() {
        verbose = ConfigurationFactory.getConfiguration().getBoolean("logging.verbose", false);
    }

    public boolean isVerbose() {
        return verbose;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy