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

org.whitesource.fs.LogMapDefiner Maven / Gradle / Ivy

Go to download

File System Agent is a simple java command line tool which extracts descriptive information from your open source libraries

There is a newer version: 18.9.1.1
Show newest version
package org.whitesource.fs;

import ch.qos.logback.core.PropertyDefinerBase;
import org.whitesource.agent.Constants;

import java.util.HashMap;
import java.util.Map;

public class LogMapDefiner extends PropertyDefinerBase {

    /* --- Static members --- */
    private static Map properties = new HashMap<>();
    protected static final String APPENDER_NAME = "appenderName";
    protected static final String LOGGER_NAME = "loggerName";

    static {
        properties.put(APPENDER_NAME, Constants.MAP_APPENDER_NAME);
        properties.put(LOGGER_NAME, Constants.MAP_LOG_NAME);
    }

    private String propertyLookupKey;

    public void setPropertyLookupKey(String propertyLookupKey) {
        this.propertyLookupKey = propertyLookupKey;
    }

    @Override
    public String getPropertyValue() {
        return properties.get(propertyLookupKey);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy