Package 

Object Logs


  • 
    public class Logs
    
                        

    An entry point to Datadog Logs feature.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Logs INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final static Unit enable(LogsConfiguration logsConfiguration, SdkCore sdkCore) Enables a Logs feature based on the configuration provided.
      final static Unit enable(LogsConfiguration logsConfiguration) Enables a Logs feature based on the configuration provided.
      final static Boolean isEnabled(SdkCore sdkCore) Identify whether a Logs has been enabled for the given SDK instance.
      final static Boolean isEnabled() Identify whether a Logs has been enabled for the given SDK instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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