Class JulLogFactory

java.lang.Object
org.apache.commons.jcs3.log.JulLogFactory
All Implemented Interfaces:
LogFactory

public class JulLogFactory extends Object implements LogFactory
This is a SPI factory implementation for java.util.logging
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Return the name of the Log subsystem managed by this factory
      Specified by:
      getName in interface LogFactory
      Returns:
      the name of the log subsystem
    • shutdown

      public void shutdown()
      Shutdown the logging system if the logging system supports it.
      Specified by:
      shutdown in interface LogFactory
    • getLog

      public Log getLog(Class<?> clazz)
      Returns a Log using the fully qualified name of the Class as the Log name.
      Specified by:
      getLog in interface LogFactory
      Parameters:
      clazz - The Class whose name should be used as the Log name.
      Returns:
      The Log.
    • getLog

      public Log getLog(String name)
      Returns a Log with the specified name.
      Specified by:
      getLog in interface LogFactory
      Parameters:
      name - The logger name.
      Returns:
      The Log.