Package 

Class Logger.Builder

    • Constructor Detail

      • Logger.Builder

        Logger.Builder()
    • Method Detail

      • build

         final Logger build()

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

      • setServiceName

         final Logger.Builder setServiceName(String serviceName)

        Sets the service name that will appear in your logs.

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

         final Logger.Builder setDatadogLogsEnabled(Boolean enabled)

        Enables your logs to be sent to the Datadog servers. You can use this feature to disable Datadog logs based on a configuration or an application flavor.

        Parameters:
        enabled - true by default
      • setDatadogLogsMinPriority

         final Logger.Builder setDatadogLogsMinPriority(Integer minLogPriority)

        Sets a minimum 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:
        minLogPriority - Minimum log priority to be sent to the Datadog servers.
      • setLoggerName

         final Logger.Builder setLoggerName(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