Class DefaultUserDataLoggerConfig

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultUserDataLoggerConfig​(java.lang.String loggerName, LogLevel logLevel, java.util.function.BooleanSupplier logUserData)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String loggerName()
      Get the name of the logger to use.
      LogLevel logLevel()
      Get the level to log at.
      java.util.function.BooleanSupplier logUserData()
      Determine if user data (e.g.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultUserDataLoggerConfig

        public DefaultUserDataLoggerConfig​(java.lang.String loggerName,
                                           LogLevel logLevel,
                                           java.util.function.BooleanSupplier logUserData)
        Create a new instance.
        Parameters:
        loggerName - the name of the logger to use.
        logLevel - the level to log at.
        logUserData - if user data (e.g. data, headers, etc.) should be included in logs.
    • Method Detail

      • loggerName

        public java.lang.String loggerName()
        Description copied from interface: LoggerConfig
        Get the name of the logger to use.
        Specified by:
        loggerName in interface LoggerConfig
        Returns:
        the name of the logger to use.
      • logUserData

        public java.util.function.BooleanSupplier logUserData()
        Description copied from interface: UserDataLoggerConfig
        Determine if user data (e.g. data, headers, etc.) should be included in logs.
        Specified by:
        logUserData in interface UserDataLoggerConfig
        Returns:
        true to include user data (e.g. data, headers, etc.). false to exclude user data and log only network events.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object