Package 

Class Logger.Builder

    • Constructor Detail

      • Logger.Builder

        Logger.Builder(SdkCore sdkCore)
        Parameters:
        sdkCore - SDK instance to bind to.
      • Logger.Builder

        Logger.Builder()
    • Method Detail

      • build

         final Logger build()

        Builds a Logger based on the current state of this Builder.

      • setService

         final Logger.Builder setService(String service)

        Sets the service name that will appear in your logs.

        Parameters:
        service - the service name (default = application package name)
      • setRemoteLogThreshold

         final Logger.Builder setRemoteLogThreshold(Integer minLogThreshold)

        Sets a minimum threshold (priority) for the log to be sent to the Datadog servers. If log priority is below this one, then it won't be sent. Default value is -1 (allow all).

        Parameters:
        minLogThreshold - Minimum log threshold to be sent to the Datadog servers.
      • setName

         final Logger.Builder setName(String name)

        Sets the logger name that will appear in your logs when a throwable is attached.

        Parameters:
        name - the logger custom name (default = application package name)
      • setBundleWithTraceEnabled

         final Logger.Builder setBundleWithTraceEnabled(Boolean enabled)

        Enables the logs bundling with the current active trace. If this feature is enabled all the logs from this moment on will be bundled with the current trace and you will be able to see all the logs sent during a specific trace.

        Parameters:
        enabled - true by default
      • setBundleWithRumEnabled

         final Logger.Builder setBundleWithRumEnabled(Boolean enabled)

        Enables the logs bundling with the current active View. If this feature is enabled all the logs from this moment on will be bundled with the current view information and you will be able to see all the logs sent during a specific view in the Rum Explorer.

        Parameters:
        enabled - true by default