-
public class LogsAn entry point to Datadog Logs feature.
-
-
Method Summary
Modifier and Type Method Description final static Unitenable(LogsConfiguration logsConfiguration, SdkCore sdkCore)Enables a Logs feature based on the configuration provided. final static Unitenable(LogsConfiguration logsConfiguration)Enables a Logs feature based on the configuration provided. final static BooleanisEnabled(SdkCore sdkCore)Identify whether a Logs has been enabled for the given SDK instance. final static BooleanisEnabled()Identify whether a Logs has been enabled for the given SDK instance. -
-
Method Detail
-
enable
@JvmOverloads() final static Unit enable(LogsConfiguration logsConfiguration, SdkCore sdkCore)
Enables a Logs feature based on the configuration provided.
- Parameters:
logsConfiguration- Configuration to use for the feature.sdkCore- SDK instance to register feature in.
-
enable
@JvmOverloads() final static Unit enable(LogsConfiguration logsConfiguration)
Enables a Logs feature based on the configuration provided.
- Parameters:
logsConfiguration- Configuration to use for the feature.
-
isEnabled
@JvmOverloads() final static Boolean isEnabled(SdkCore sdkCore)
Identify whether a Logs has been enabled for the given SDK instance.
This check is useful in scenarios where more than one component may be responsible for enabling the feature
- Parameters:
sdkCore- the SdkCore instance to check against.
-
isEnabled
@JvmOverloads() final static Boolean isEnabled()
Identify whether a Logs has been enabled for the given SDK instance.
This check is useful in scenarios where more than one component may be responsible for enabling the feature
-
-
-
-