Class LoggerUtilKt
-
- All Implemented Interfaces:
public final class LoggerUtilKt
-
-
Method Summary
Modifier and Type Method Description final static LoggergetLogger()Get a Logger from the default LoggerFactory, using the name of the calling class and the default level and clock. final static LoggergetLogger(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 LoggergetLogger(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 LoggergetLogger(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 LoggergetLogger(String name)Get a Logger from the default LoggerFactory, using the specified name and the default level and clock. final static LoggergetLogger(String name, Level level)Get a Logger from the default LoggerFactory, using the specified name and level and the default clock. final static LoggergetLogger(String name, Clock clock)Get a Logger from the default LoggerFactory, using the specified name and clock and the default level. final static LoggergetLogger(String name, Level level, Clock clock)Get a Logger from the default LoggerFactory, using the specified name, level and clock. final static LoggergetLogger(Class<?> javaClass)Get a Logger from the default LoggerFactory, using the specified Java Class name and the default level and clock. final static LoggergetLogger(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 LoggergetLogger(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 LoggergetLogger(Class<?> javaClass, Level level, Clock clock)Get a Logger from the default LoggerFactory, using the specified Java Class name, level and clock. final static LoggergetLogger(KClass<?> kClass)Get a Logger from the default LoggerFactory, using the specified KClass name and the default level and clock. final static LoggergetLogger(KClass<?> kClass, Level level)Get a Logger from the default LoggerFactory, using the specified KClass name and level and the default clock. final static LoggergetLogger(KClass<?> kClass, Clock clock)Get a Logger from the default LoggerFactory, using the specified KClass name and clock and the default level. final static LoggergetLogger(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> LgetLogger(LoggerFactory<L> $self, KClass<?> kClass, Level level, Clock clock)Get a Logger for a Kotlin KClass, using the optional Level and Clock. final static BooleanisTrace(LogItem $self, String text)Test whether a LogItem represents a message with level TRACEand the specified text.final static BooleanisTrace(LogItem $self, Regex regex)Test whether a LogItem represents a message with level TRACEand the specified text.final static BooleanisDebug(LogItem $self, String text)Test whether a LogItem represents a message with level DEBUGand the specified text.final static BooleanisDebug(LogItem $self, Regex regex)Test whether a LogItem represents a message with level DEBUGand the specified text.final static BooleanisInfo(LogItem $self, String text)Test whether a LogItem represents a message with level INFOand the specified text.final static BooleanisInfo(LogItem $self, Regex regex)Test whether a LogItem represents a message with level INFOand text that matches the given Regex.final static BooleanisWarning(LogItem $self, String text)Test whether a LogItem represents a message with level WARNand the specified text.final static BooleanisWarning(LogItem $self, Regex regex)Test whether a LogItem represents a message with level WARNand text that matches the given Regex.final static BooleanisError(LogItem $self, String text)Test whether a LogItem represents a message with level ERRORand the specified text.final static BooleanisError(LogItem $self, Regex regex)Test whether a LogItem represents a message with level ERRORand text that matches the given Regex.final static Iterable<LogItem>subList(Iterable<LogItem> $self, String name)Filter list by name. final static UnitassertHasTrace(Iterable<LogItem> $self, String text)Test whether a LogList has a TRACEentry with the specified text.final static UnitassertHasTrace(Iterable<LogItem> $self, Regex regex)Test whether a LogList has a TRACEentry matching the specified Regex.final static UnitassertHasDebug(Iterable<LogItem> $self, String text)Test whether a LogList has a DEBUGentry with the specified text.final static UnitassertHasDebug(Iterable<LogItem> $self, Regex regex)Test whether a LogList has a DEBUGentry matching the specified Regex.final static UnitassertHasInfo(Iterable<LogItem> $self, String text)Test whether a LogList has an INFOentry with the specified text.final static UnitassertHasInfo(Iterable<LogItem> $self, Regex regex)Test whether a LogList has an INFOentry matching the specified Regex.final static UnitassertHasWarning(Iterable<LogItem> $self, String text)Test whether a LogList has a WARNentry with the specified text.final static UnitassertHasWarning(Iterable<LogItem> $self, Regex regex)Test whether a LogList has a WARNentry matching the specified Regex.final static UnitassertHasError(Iterable<LogItem> $self, String text)Test whether a LogList has an ERRORentry with the specified text.final static UnitassertHasError(Iterable<LogItem> $self, Regex regex)Test whether a LogList has an ERRORentry matching the specified Regex.-
-
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)
-
isTrace
final static Boolean isTrace(LogItem $self, String text)
Test whether a LogItem represents a message with level
TRACEand the specified text.
-
isTrace
final static Boolean isTrace(LogItem $self, Regex regex)
Test whether a LogItem represents a message with level
TRACEand the specified text.
-
isDebug
final static Boolean isDebug(LogItem $self, String text)
Test whether a LogItem represents a message with level
DEBUGand the specified text.
-
isDebug
final static Boolean isDebug(LogItem $self, Regex regex)
Test whether a LogItem represents a message with level
DEBUGand the specified text.
-
isInfo
final static Boolean isInfo(LogItem $self, String text)
Test whether a LogItem represents a message with level
INFOand the specified text.
-
isInfo
final static Boolean isInfo(LogItem $self, Regex regex)
Test whether a LogItem represents a message with level
INFOand text that matches the given Regex.
-
isWarning
final static Boolean isWarning(LogItem $self, String text)
Test whether a LogItem represents a message with level
WARNand the specified text.
-
isWarning
final static Boolean isWarning(LogItem $self, Regex regex)
Test whether a LogItem represents a message with level
WARNand text that matches the given Regex.
-
isError
final static Boolean isError(LogItem $self, String text)
Test whether a LogItem represents a message with level
ERRORand the specified text.
-
isError
final static Boolean isError(LogItem $self, Regex regex)
Test whether a LogItem represents a message with level
ERRORand text that matches the given Regex.
-
subList
final static Iterable<LogItem> subList(Iterable<LogItem> $self, String name)
Filter list by name.
-
assertHasTrace
final static Unit assertHasTrace(Iterable<LogItem> $self, String text)
Test whether a LogList has a
TRACEentry with the specified text.
-
assertHasTrace
final static Unit assertHasTrace(Iterable<LogItem> $self, Regex regex)
Test whether a LogList has a
TRACEentry matching the specified Regex.
-
assertHasDebug
final static Unit assertHasDebug(Iterable<LogItem> $self, String text)
Test whether a LogList has a
DEBUGentry with the specified text.
-
assertHasDebug
final static Unit assertHasDebug(Iterable<LogItem> $self, Regex regex)
Test whether a LogList has a
DEBUGentry matching the specified Regex.
-
assertHasInfo
final static Unit assertHasInfo(Iterable<LogItem> $self, String text)
Test whether a LogList has an
INFOentry with the specified text.
-
assertHasInfo
final static Unit assertHasInfo(Iterable<LogItem> $self, Regex regex)
Test whether a LogList has an
INFOentry matching the specified Regex.
-
assertHasWarning
final static Unit assertHasWarning(Iterable<LogItem> $self, String text)
Test whether a LogList has a
WARNentry with the specified text.
-
assertHasWarning
final static Unit assertHasWarning(Iterable<LogItem> $self, Regex regex)
Test whether a LogList has a
WARNentry matching the specified Regex.
-
assertHasError
final static Unit assertHasError(Iterable<LogItem> $self, String text)
Test whether a LogList has an
ERRORentry with the specified text.
-
assertHasError
final static Unit assertHasError(Iterable<LogItem> $self, Regex regex)
Test whether a LogList has an
ERRORentry matching the specified Regex.
-
-
-
-