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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_LOGGINGLog systems currently known- See Also:
 
- 
LOGSYSTEM_LOG4J2- See Also:
 
 
- 
- 
Constructor Details- 
LogManagerprotected LogManager()Prevents instantiation
 
- 
- 
Method Details- 
setLogSystemSet the log system. Must be called before getLog is called- Parameters:
- logSystem- the logSystem to set
 
- 
shutdownShutdown the logging system if the logging system supports it.
- 
getLogReturns 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- if- clazzis- null
 
- 
getLogReturns a Log with the specified name.- Parameters:
- name- The logger name.
- Returns:
- The Log.
- Throws:
- UnsupportedOperationException- if- nameis- null
 
- 
getRootLoggerReturns the root logger.- Returns:
- the root logger, named LogFactory.ROOT_LOGGER_NAME.
 
 
-