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

oms3.dsl.Logging Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package oms3.dsl;

import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;

/** Model Logging configuration.
 *
 * @author od
 */
public class Logging implements Buildable {

    // name -> loglevel
    Map comps = new HashMap();

    // the default log level for all components
    String all = Level.WARNING.getName();

    @Override
    public Buildable create(Object name, Object value) {
        comps.put(name.toString(), value.toString());
        return LEAF;
    }

    public void setAll(String all) {
        this.all = all;
    }

    public String getAll() {
        return all;
    }

    public Map getCompLevels() {
        return comps;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy