L - the Logger typepublic interface LoggerFactory<L extends Logger>
LoggerFactory supplies a Logger of a particular type.| Modifier and Type | Field and Description |
|---|---|
static String |
logPackageName |
static Clock |
systemClock |
| Modifier and Type | Method and Description |
|---|---|
static StackTraceElement |
callerInfo()
Get the caller information in the form of a
StackTraceElement, to allow the class name of the caller to
be used for the name of the Logger. |
default Clock |
getDefaultClock()
Get the default
Clock used by this LoggerFactory. |
default Level |
getDefaultLevel()
Get the default
Level used by this LoggerFactory. |
default L |
getLogger()
Get a
Logger with the name of the calling class. |
default L |
getLogger(Class<?> javaClass)
|
default L |
getLogger(Class<?> javaClass,
Clock clock)
|
default L |
getLogger(Class<?> javaClass,
Level level)
|
default L |
getLogger(Class<?> javaClass,
Level level,
Clock clock)
|
default L |
getLogger(Clock clock)
Get a
Logger with the name of the calling class and the specified level and clock. |
default L |
getLogger(Level level)
Get a
Logger with the name of the calling class and the specified level. |
default L |
getLogger(Level level,
Clock clock)
Get a
Logger with the name of the calling class and the specified level and clock. |
default L |
getLogger(String name)
Get a
Logger with the specified name. |
default L |
getLogger(String name,
Clock clock)
Get a
Logger with the specified name and clock. |
default L |
getLogger(String name,
Level level)
Get a
Logger with the specified name and level. |
L |
getLogger(String name,
Level level,
Clock clock)
Get a
Logger with the specified name, level and clock. |
static final String logPackageName
static final Clock systemClock
L getLogger(String name, Level level, Clock clock)
Logger with the specified name, level and clock.name - the namelevel - the levelclock - the clockLoggerdefault L getLogger(String name, Level level)
Logger with the specified name and level.name - the namelevel - the levelLoggerdefault L getLogger(String name, Clock clock)
Logger with the specified name and clock.name - the nameclock - the clockLoggerdefault L getLogger(String name)
Logger with the specified name.name - the nameLoggerdefault L getLogger()
Logger with the name of the calling class.Loggerdefault L getLogger(Level level, Clock clock)
Logger with the name of the calling class and the specified level and clock.level - the levelclock - the clockLoggerdefault L getLogger(Level level)
Logger with the name of the calling class and the specified level.level - the levelLoggerdefault L getLogger(Clock clock)
Logger with the name of the calling class and the specified level and clock.clock - the clockLoggerdefault Level getDefaultLevel()
Level used by this LoggerFactory.Leveldefault Clock getDefaultClock()
Clock used by this LoggerFactory.Clockstatic StackTraceElement callerInfo()
StackTraceElement, to allow the class name of the caller to
be used for the name of the Logger.StackTraceElement for the callerCopyright © 2022. All rights reserved.