Class LoggersKt
-
- All Implemented Interfaces:
public final class LoggersKt
-
-
Method Summary
Modifier and Type Method Description final static LoggerFactory<?>getDefaultLoggerFactory()Get the default LoggerFactory (initially a DynamicLoggerFactory) final static UnitsetDefaultLoggerFactory(LoggerFactory<?> loggerFactory)Set the default logger factory. 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. -
-
Method Detail
-
getDefaultLoggerFactory
final static LoggerFactory<?> getDefaultLoggerFactory()
Get the default LoggerFactory (initially a DynamicLoggerFactory)
-
setDefaultLoggerFactory
final static Unit setDefaultLoggerFactory(LoggerFactory<?> loggerFactory)
Set the default logger factory.
-
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.
-
-
-
-