public class ApplicationLoggingConfigImpl extends BaseConfig implements ApplicationLoggingConfig
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED |
static java.lang.String |
ENABLED |
static java.lang.String |
FORWARDING |
static java.lang.String |
LOCAL_DECORATING |
static java.lang.String |
METRICS |
static java.lang.String |
SYSTEM_PROPERTY_ROOT |
addDeprecatedProperties, COMMA_SEPARATOR, deprecatedProperties, SEMI_COLON_SEPARATOR, systemPropertyPrefix| Constructor and Description |
|---|
ApplicationLoggingConfigImpl(java.util.Map<java.lang.String,java.lang.Object> pProps,
boolean highSecurity) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getForwardingContextDataExclude()
Get the exclude list for context data.
|
java.util.List<java.lang.String> |
getForwardingContextDataInclude()
Get the include list for context data.
|
ApplicationLoggingLocalDecoratingConfig |
getLocalDecoratingConfig() |
java.util.Set<java.lang.String> |
getLogLabelsExcludeSet()
Get the set of excluded labels.
|
int |
getMaxSamplesStored()
Get the max number of LogEvents that can be stored during a harvest period before sampling takes place.
|
boolean |
isEnabled()
Determines whether the application_logging features are completely disabled or can be controlled individually.
|
boolean |
isForwardingContextDataEnabled()
Allow the agent to forward context data along with the application logs to New Relic.
|
boolean |
isForwardingEnabled()
Allow the agent to forward application logs to New Relic.
|
boolean |
isLocalDecoratingEnabled()
Allow the agent to decorate application log files and console output with New Relic specific linking metadata.
|
boolean |
isLogLabelsEnabled()
Allow the agent to add labels to application logs.
|
boolean |
isMetricsEnabled()
Allow metrics to be generated to provide data such as the number of lines logged at each log level.
|
java.util.Map<java.lang.String,java.lang.String> |
removeExcludedLogLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Removes excluded labels from the labels map.
|
addDeprecatedProperty, castValue, clearDeprecatedProperties, getDoubleProperty, getIntegerSet, getIntProperty, getProperties, getProperty, getProperty, getPropertyFromSystemEnvironment, getPropertyFromSystemProperties, getStringPropertyOrNull, getSystemPropertyKey, getUniqueStrings, getUniqueStrings, getUniqueStringsFromCollection, getUniqueStringsFromCollection, getUniqueStringsFromString, nestedPropspublic static final java.lang.String SYSTEM_PROPERTY_ROOT
public static final java.lang.String METRICS
public static final java.lang.String FORWARDING
public static final java.lang.String LOCAL_DECORATING
public static final boolean DEFAULT_ENABLED
public static final java.lang.String ENABLED
public ApplicationLoggingConfigImpl(java.util.Map<java.lang.String,java.lang.Object> pProps,
boolean highSecurity)
public boolean isEnabled()
ApplicationLoggingConfigisEnabled in interface ApplicationLoggingConfigpublic boolean isMetricsEnabled()
ApplicationLoggingConfigisMetricsEnabled in interface ApplicationLoggingConfigpublic boolean isLocalDecoratingEnabled()
ApplicationLoggingConfigisLocalDecoratingEnabled in interface ApplicationLoggingConfigpublic ApplicationLoggingLocalDecoratingConfig getLocalDecoratingConfig()
public boolean isForwardingEnabled()
ApplicationLoggingConfigisForwardingEnabled in interface ApplicationLoggingConfigpublic int getMaxSamplesStored()
ApplicationLoggingConfiggetMaxSamplesStored in interface ApplicationLoggingConfigpublic boolean isForwardingContextDataEnabled()
ApplicationLoggingConfigisForwardingContextDataEnabled in interface ApplicationLoggingConfigpublic java.util.List<java.lang.String> getForwardingContextDataInclude()
ApplicationLoggingConfiggetForwardingContextDataInclude in interface ApplicationLoggingConfigpublic java.util.List<java.lang.String> getForwardingContextDataExclude()
ApplicationLoggingConfiggetForwardingContextDataExclude in interface ApplicationLoggingConfigpublic boolean isLogLabelsEnabled()
ApplicationLoggingConfigisLogLabelsEnabled in interface ApplicationLoggingConfigpublic java.util.Map<java.lang.String,java.lang.String> removeExcludedLogLabels(java.util.Map<java.lang.String,java.lang.String> labels)
ApplicationLoggingConfigremoveExcludedLogLabels in interface ApplicationLoggingConfigpublic java.util.Set<java.lang.String> getLogLabelsExcludeSet()
ApplicationLoggingConfiggetLogLabelsExcludeSet in interface ApplicationLoggingConfig