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

com.newrelic.agent.config.ApplicationLoggingMetricsConfig Maven / Gradle / Ivy

The newest version!
/*
 *
 *  * Copyright 2022 New Relic Corporation. All rights reserved.
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.newrelic.agent.config;

import java.util.Map;

public class ApplicationLoggingMetricsConfig extends BaseConfig {
    public static final String ROOT = "metrics";
    public static final String ENABLED = "enabled";
    public static final boolean DEFAULT_ENABLED = true;

    private final boolean enabled;

    public ApplicationLoggingMetricsConfig(Map props, String parentRoot) {
        super(props, parentRoot + ROOT + ".");
        enabled = getProperty(ENABLED, DEFAULT_ENABLED);
    }

    public boolean getEnabled() {
        return enabled;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy