L - the Logger typepublic abstract class AbstractLoggerFactory<L extends net.pwall.log.Logger> extends Object implements net.pwall.log.LoggerFactory<L>
LoggerFactory implementations.| Modifier and Type | Field and Description |
|---|---|
static String |
defaultLevelPropertyName |
static net.pwall.log.Level |
systemDefaultLevel |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoggerFactory(net.pwall.log.Level defaultLevel,
Clock defaultClock)
|
| Modifier and Type | Method and Description |
|---|---|
protected L |
getCachedLogger(String name)
Get a
Logger from the cache. |
Clock |
getDefaultClock()
|
net.pwall.log.Level |
getDefaultLevel()
Get the default
Level to be used by Logger instances created by this LoggerFactory. |
protected void |
putCachedLogger(String name,
L logger)
Store a
Logger in the cache. |
void |
setDefaultClock(Clock defaultClock)
|
void |
setDefaultLevel(net.pwall.log.Level defaultLevel)
Set the default
Level to be used by Logger instances created by this LoggerFactory. |
public static final String defaultLevelPropertyName
public static final net.pwall.log.Level systemDefaultLevel
public net.pwall.log.Level getDefaultLevel()
Level to be used by Logger instances created by this LoggerFactory.getDefaultLevel in interface net.pwall.log.LoggerFactory<L extends net.pwall.log.Logger>Levelpublic void setDefaultLevel(net.pwall.log.Level defaultLevel)
Level to be used by Logger instances created by this LoggerFactory.defaultLevel - the new default Levelpublic Clock getDefaultClock()
public void setDefaultClock(Clock defaultClock)
defaultClock - the new default Clockprotected L getCachedLogger(String name)
Logger from the cache. This function also checks that the logger name is not null, not empty and
contains only ASCII characters.name - the Logger nameLogger, or null if not foundLoggerException - on any errorsCopyright © 2024. All rights reserved.