Package com.hazelcast.logging
Class LoggerFactorySupport
java.lang.Object
com.hazelcast.logging.LoggerFactorySupport
- All Implemented Interfaces:
com.hazelcast.logging.impl.InternalLoggerFactory
,LoggerFactory
- Direct Known Subclasses:
Log4j2Factory
,Log4jFactory
,Slf4jFactory
,StandardLoggerFactory
public abstract class LoggerFactorySupport extends Object implements LoggerFactory, com.hazelcast.logging.impl.InternalLoggerFactory
-
Constructor Summary
Constructors Constructor Description LoggerFactorySupport()
-
Method Summary
Modifier and Type Method Description void
clearLoadedLoggers()
protected abstract ILogger
createLogger(String name)
ILogger
getLogger(String name)
void
resetLevel()
Resets the levels of all the loggers known to this logger factory back to the default preconfigured values.void
setLevel(Level level)
Sets the levels of all the loggers known to this logger factory to the given level.
-
Constructor Details
-
LoggerFactorySupport
public LoggerFactorySupport()
-
-
Method Details
-
getLogger
- Specified by:
getLogger
in interfaceLoggerFactory
-
createLogger
-
clearLoadedLoggers
public void clearLoadedLoggers() -
setLevel
Description copied from interface:com.hazelcast.logging.impl.InternalLoggerFactory
Sets the levels of all the loggers known to this logger factory to the given level. If a certain logger was already preconfigured with a more verbose level than the given level, it will be kept at that more verbose level.- Specified by:
setLevel
in interfacecom.hazelcast.logging.impl.InternalLoggerFactory
- Parameters:
level
- the level to set.
-
resetLevel
public void resetLevel()Description copied from interface:com.hazelcast.logging.impl.InternalLoggerFactory
Resets the levels of all the loggers known to this logger factory back to the default preconfigured values. Basically, undoes all the changes done by the previous calls toInternalLoggerFactory.setLevel(java.util.logging.Level)
, if there were any.- Specified by:
resetLevel
in interfacecom.hazelcast.logging.impl.InternalLoggerFactory
-