Interface LogFactory

All Known Implementing Classes:
JulLogFactory, Log4j2Factory

public interface LogFactory
This is a SPI factory interface for specialized Log objects
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the root Log.
  • Method Summary

    Modifier and Type
    Method
    Description
    getLog(Class<?> clazz)
    Returns a Log using the fully qualified name of the Class as the Log name.
    getLog(String name)
    Returns a Log with the specified name.
    Return the name of the Log subsystem managed by this factory
    void
    Shutdown the logging system if the logging system supports it.
  • Field Details

  • 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

      Log getLog(Class<?> clazz)
      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 - if clazz is null
    • getLog

      Log getLog(String name)
      Returns a Log with the specified name.
      Parameters:
      name - The logger name.
      Returns:
      The Log.
      Throws:
      UnsupportedOperationException - if name is null