Package org.apache.commons.jcs3.log
Interface LogFactory
- All Known Implementing Classes:
JulLogFactory
,Log4j2Factory
public interface LogFactory
This is a SPI factory interface for specialized Log objects
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns a Log using the fully qualified name of the Class as the Log name.Returns a Log with the specified name.getName()
Return the name of the Log subsystem managed by this factoryvoid
shutdown()
Shutdown the logging system if the logging system supports it.
-
Field Details
-
ROOT_LOGGER_NAME
The name of the root Log.- See Also:
-
-
Method Details
-
getName
Return the name of the Log subsystem managed by this factory- Returns:
- the name of the log subsystem
-
shutdown
void 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
- ifclazz
isnull
-
getLog
Returns a Log with the specified name.- Parameters:
name
- The logger name.- Returns:
- The Log.
- Throws:
UnsupportedOperationException
- ifname
isnull
-