Package org.apache.commons.jcs3.log
Class LogManager
java.lang.Object
org.apache.commons.jcs3.log.LogManager
This is a borrowed and stripped-down version of the log4j2 LogManager class.
 The anchor point for the JCS logging system. The most common usage of this
 class is to obtain a named 
Log.- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic LogReturns a Log using the fully qualified name of the Class as the Log name.static LogReturns a Log with the specified name.static LogReturns the root logger.static voidsetLogSystem(String logSystem) Set the log system.static voidshutdown()Shutdown the logging system if the logging system supports it. 
- 
Field Details
- 
LOGSYSTEM_JAVA_UTIL_LOGGING
Log systems currently known- See Also:
 
 - 
LOGSYSTEM_LOG4J2
- See Also:
 
 
 - 
 - 
Constructor Details
- 
LogManager
protected LogManager()Prevents instantiation 
 - 
 - 
Method Details
- 
setLogSystem
Set the log system. Must be called before getLog is called- Parameters:
 logSystem- the logSystem to set
 - 
shutdown
Shutdown the logging system if the logging system supports it. - 
getLog
Returns a Log using the fully qualified name of the Class as the Log name.- Parameters:
 clazz- The Class whose name should be used as the Log name.- Returns:
 - The Log.
 - Throws:
 UnsupportedOperationException- ifclazzisnull
 - 
getLog
Returns a Log with the specified name.- Parameters:
 name- The logger name.- Returns:
 - The Log.
 - Throws:
 UnsupportedOperationException- ifnameisnull
 - 
getRootLogger
Returns the root logger.- Returns:
 - the root logger, named 
LogFactory.ROOT_LOGGER_NAME. 
 
 -