Class LoggingConfiguration


  • public final class LoggingConfiguration
    extends java.lang.Object
    Encapsulates the SDK's general logging configuration.

    Use LoggingConfigurationBuilder to construct an instance.

    Since:
    5.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingConfiguration​(java.lang.String baseLoggerName, LDLogAdapter logAdapter, java.time.Duration logDataSourceOutageAsErrorAfter)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseLoggerName()
      Returns the configured base logger name.
      LDLogAdapter getLogAdapter()
      Returns the configured logging adapter.
      java.time.Duration getLogDataSourceOutageAsErrorAfter()
      The time threshold, if any, after which the SDK will log a data source outage at ERROR level instead of WARN level.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBaseLoggerName

        public java.lang.String getBaseLoggerName()
        Returns the configured base logger name.
        Returns:
        the logger name
        Since:
        5.10.0
      • getLogAdapter

        public LDLogAdapter getLogAdapter()
        Returns the configured logging adapter.
        Returns:
        the logging adapter
        Since:
        5.10.0