Package 

Class LoggerUtilKt

  • All Implemented Interfaces:

    
    public final class LoggerUtilKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Logger getLogger() Get a Logger from the default LoggerFactory, using the name of the calling class and the default level and clock.
      final static Logger getLogger(Level level) Get a Logger from the default LoggerFactory, using the name of the calling class, the specified level and the default clock.
      final static Logger getLogger(Clock clock) Get a Logger from the default LoggerFactory, using the name of the calling class, the default level and the specified clock.
      final static Logger getLogger(Level level, Clock clock) Get a Logger from the default LoggerFactory, using the name of the calling class and the specified level and clock.
      final static Logger getLogger(String name) Get a Logger from the default LoggerFactory, using the specified name and the default level and clock.
      final static Logger getLogger(String name, Level level) Get a Logger from the default LoggerFactory, using the specified name and level and the default clock.
      final static Logger getLogger(String name, Clock clock) Get a Logger from the default LoggerFactory, using the specified name and clock and the default level.
      final static Logger getLogger(String name, Level level, Clock clock) Get a Logger from the default LoggerFactory, using the specified name, level and clock.
      final static Logger getLogger(Class<?> javaClass) Get a Logger from the default LoggerFactory, using the specified Java Class name and the default level and clock.
      final static Logger getLogger(Class<?> javaClass, Level level) Get a Logger from the default LoggerFactory, using the specified Java Class name and level and the default clock.
      final static Logger getLogger(Class<?> javaClass, Clock clock) Get a Logger from the default LoggerFactory, using the specified Java Class name and clock and the default level.
      final static Logger getLogger(Class<?> javaClass, Level level, Clock clock) Get a Logger from the default LoggerFactory, using the specified Java Class name, level and clock.
      final static Logger getLogger(KClass<?> kClass) Get a Logger from the default LoggerFactory, using the specified KClass name and the default level and clock.
      final static Logger getLogger(KClass<?> kClass, Level level) Get a Logger from the default LoggerFactory, using the specified KClass name and level and the default clock.
      final static Logger getLogger(KClass<?> kClass, Clock clock) Get a Logger from the default LoggerFactory, using the specified KClass name and clock and the default level.
      final static Logger getLogger(KClass<?> kClass, Level level, Clock clock) Get a Logger from the default LoggerFactory, using the specified KClass name, level and clock.
      final static <L extends Logger> L getLogger(LoggerFactory<L> $self, KClass<?> kClass, Level level, Clock clock) Get a Logger for a Kotlin KClass, using the optional Level and Clock.
      final static Boolean isTrace(LogItem $self, String text) Test whether a LogItem represents a message with level TRACE and the specified text.
      final static Boolean isTrace(LogItem $self, Regex regex) Test whether a LogItem represents a message with level TRACE and the specified text.
      final static Boolean isDebug(LogItem $self, String text) Test whether a LogItem represents a message with level DEBUG and the specified text.
      final static Boolean isDebug(LogItem $self, Regex regex) Test whether a LogItem represents a message with level DEBUG and the specified text.
      final static Boolean isInfo(LogItem $self, String text) Test whether a LogItem represents a message with level INFO and the specified text.
      final static Boolean isInfo(LogItem $self, Regex regex) Test whether a LogItem represents a message with level INFO and text that matches the given Regex.
      final static Boolean isWarning(LogItem $self, String text) Test whether a LogItem represents a message with level WARN and the specified text.
      final static Boolean isWarning(LogItem $self, Regex regex) Test whether a LogItem represents a message with level WARN and text that matches the given Regex.
      final static Boolean isError(LogItem $self, String text) Test whether a LogItem represents a message with level ERROR and the specified text.
      final static Boolean isError(LogItem $self, Regex regex) Test whether a LogItem represents a message with level ERROR and text that matches the given Regex.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getLogger

         final static Logger getLogger()

        Get a Logger from the default LoggerFactory, using the name of the calling class and the default level and clock.

      • getLogger

         final static Logger getLogger(Level level)

        Get a Logger from the default LoggerFactory, using the name of the calling class, the specified level and the default clock.

      • getLogger

         final static Logger getLogger(Clock clock)

        Get a Logger from the default LoggerFactory, using the name of the calling class, the default level and the specified clock.

      • getLogger

         final static Logger getLogger(Level level, Clock clock)

        Get a Logger from the default LoggerFactory, using the name of the calling class and the specified level and clock.

      • getLogger

         final static Logger getLogger(String name)

        Get a Logger from the default LoggerFactory, using the specified name and the default level and clock.

      • getLogger

         final static Logger getLogger(String name, Level level)

        Get a Logger from the default LoggerFactory, using the specified name and level and the default clock.

      • getLogger

         final static Logger getLogger(String name, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified name and clock and the default level.

      • getLogger

         final static Logger getLogger(String name, Level level, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified name, level and clock.

      • getLogger

         final static Logger getLogger(Class<?> javaClass)

        Get a Logger from the default LoggerFactory, using the specified Java Class name and the default level and clock.

      • getLogger

         final static Logger getLogger(Class<?> javaClass, Level level)

        Get a Logger from the default LoggerFactory, using the specified Java Class name and level and the default clock.

      • getLogger

         final static Logger getLogger(Class<?> javaClass, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified Java Class name and clock and the default level.

      • getLogger

         final static Logger getLogger(Class<?> javaClass, Level level, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified Java Class name, level and clock.

      • getLogger

         final static Logger getLogger(KClass<?> kClass)

        Get a Logger from the default LoggerFactory, using the specified KClass name and the default level and clock.

      • getLogger

         final static Logger getLogger(KClass<?> kClass, Level level)

        Get a Logger from the default LoggerFactory, using the specified KClass name and level and the default clock.

      • getLogger

         final static Logger getLogger(KClass<?> kClass, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified KClass name and clock and the default level.

      • getLogger

         final static Logger getLogger(KClass<?> kClass, Level level, Clock clock)

        Get a Logger from the default LoggerFactory, using the specified KClass name, level and clock.

      • getLogger

         final static <L extends Logger> L getLogger(LoggerFactory<L> $self, KClass<?> kClass, Level level, Clock clock)

        Get a Logger for a Kotlin KClass, using the optional Level and Clock. (Kotlin equivalent of same function taking a Java Class).

        Parameters:
        kClass - a Kotlin KClass
        level - the Level
        clock - the Clock
      • isTrace

         final static Boolean isTrace(LogItem $self, String text)

        Test whether a LogItem represents a message with level TRACE and the specified text.

        Parameters:
        text - the text to be compared
      • isTrace

         final static Boolean isTrace(LogItem $self, Regex regex)

        Test whether a LogItem represents a message with level TRACE and the specified text.

        Parameters:
        regex - the Regex
      • isDebug

         final static Boolean isDebug(LogItem $self, String text)

        Test whether a LogItem represents a message with level DEBUG and the specified text.

        Parameters:
        text - the text to be compared
      • isDebug

         final static Boolean isDebug(LogItem $self, Regex regex)

        Test whether a LogItem represents a message with level DEBUG and the specified text.

        Parameters:
        regex - the Regex
      • isInfo

         final static Boolean isInfo(LogItem $self, String text)

        Test whether a LogItem represents a message with level INFO and the specified text.

        Parameters:
        text - the text to be compared
      • isInfo

         final static Boolean isInfo(LogItem $self, Regex regex)

        Test whether a LogItem represents a message with level INFO and text that matches the given Regex.

        Parameters:
        regex - the Regex
      • isWarning

         final static Boolean isWarning(LogItem $self, String text)

        Test whether a LogItem represents a message with level WARN and the specified text.

        Parameters:
        text - the text to be compared
      • isWarning

         final static Boolean isWarning(LogItem $self, Regex regex)

        Test whether a LogItem represents a message with level WARN and text that matches the given Regex.

        Parameters:
        regex - the Regex
      • isError

         final static Boolean isError(LogItem $self, String text)

        Test whether a LogItem represents a message with level ERROR and the specified text.

        Parameters:
        text - the text to be compared
      • isError

         final static Boolean isError(LogItem $self, Regex regex)

        Test whether a LogItem represents a message with level ERROR and text that matches the given Regex.

        Parameters:
        regex - the Regex