Class Slf4jLoggerManager

  • All Implemented Interfaces:
    org.codehaus.plexus.logging.LoggerManager

    public class Slf4jLoggerManager
    extends java.lang.Object
    implements org.codehaus.plexus.logging.LoggerManager
    Use an SLF4J ILoggerFactory as a backing for a Plexus LoggerManager, ignoring Plexus logger API parts that are not classical and probably not really used.
    Since:
    3.1
    Author:
    Jason van Zyl
    • Field Summary

      • Fields inherited from interface org.codehaus.plexus.logging.LoggerManager

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getActiveLoggerCount()
      Warning: ignored (always return 0).
      org.codehaus.plexus.logging.Logger getLoggerForComponent​(java.lang.String role)  
      org.codehaus.plexus.logging.Logger getLoggerForComponent​(java.lang.String role, java.lang.String hint)
      The logger name for a component with a non-null hint is role.hint.
      int getThreshold()
      Warning: ignored (always return 0).
      void returnComponentLogger​(java.lang.String role)
      Warning: ignored.
      void returnComponentLogger​(java.lang.String role, java.lang.String hint)
      Warning: ignored.
      void setThreshold​(int threshold)
      Warning: ignored.
      void setThresholds​(int threshold)
      Warning: ignored.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slf4jLoggerManager

        public Slf4jLoggerManager()
    • Method Detail

      • getLoggerForComponent

        public org.codehaus.plexus.logging.Logger getLoggerForComponent​(java.lang.String role)
        Specified by:
        getLoggerForComponent in interface org.codehaus.plexus.logging.LoggerManager
      • getLoggerForComponent

        public org.codehaus.plexus.logging.Logger getLoggerForComponent​(java.lang.String role,
                                                                        java.lang.String hint)
        The logger name for a component with a non-null hint is role.hint. Warning: this does not conform to logger name as class name convention. (and what about null and default hint equivalence?)
        Specified by:
        getLoggerForComponent in interface org.codehaus.plexus.logging.LoggerManager
      • returnComponentLogger

        public void returnComponentLogger​(java.lang.String role)
        Warning: ignored.
        Specified by:
        returnComponentLogger in interface org.codehaus.plexus.logging.LoggerManager
      • returnComponentLogger

        public void returnComponentLogger​(java.lang.String role,
                                          java.lang.String hint)
        Warning: ignored.
        Specified by:
        returnComponentLogger in interface org.codehaus.plexus.logging.LoggerManager
      • getThreshold

        public int getThreshold()
        Warning: ignored (always return 0).
        Specified by:
        getThreshold in interface org.codehaus.plexus.logging.LoggerManager
      • setThreshold

        public void setThreshold​(int threshold)
        Warning: ignored.
        Specified by:
        setThreshold in interface org.codehaus.plexus.logging.LoggerManager
      • setThresholds

        public void setThresholds​(int threshold)
        Warning: ignored.
        Specified by:
        setThresholds in interface org.codehaus.plexus.logging.LoggerManager
      • getActiveLoggerCount

        public int getActiveLoggerCount()
        Warning: ignored (always return 0).
        Specified by:
        getActiveLoggerCount in interface org.codehaus.plexus.logging.LoggerManager