public class InMemoryLoggerFactory extends java.lang.Object implements LoggerFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOGGER_TYPE |
Constructor and Description |
---|
InMemoryLoggerFactory() |
Modifier and Type | Method and Description |
---|---|
Logger |
createLogger()
Returns a new logger instance that is not named (empty string name) and therefore
not be retrieved again in any way by the factory.
|
Logger |
getLogger(java.lang.Class<?> clazz)
Returns a logger instance corresponding to the full qualifies name of the given class.
|
Logger |
getLogger(java.lang.String loggerName)
Returns a logger instance corresponding to the given name.
|
java.lang.String |
getName()
Returns the name of this logger factory.
|
public static final java.lang.String LOGGER_TYPE
public java.lang.String getName()
LoggerFactory
getName
in interface LoggerFactory
public Logger createLogger()
LoggerFactory
createLogger
in interface LoggerFactory
public Logger getLogger(java.lang.Class<?> clazz)
LoggerFactory
getLogger
in interface LoggerFactory
public Logger getLogger(java.lang.String loggerName)
LoggerFactory
getLogger
in interface LoggerFactory