Class JettyLoggerFactory

  • All Implemented Interfaces:
    javax.management.DynamicMBean, org.slf4j.ILoggerFactory

    public class JettyLoggerFactory
    extends java.lang.Object
    implements org.slf4j.ILoggerFactory, javax.management.DynamicMBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)  
      javax.management.AttributeList getAttributes​(java.lang.String[] attributeNames)  
      JettyLogger getJettyLogger​(java.lang.String name)
      Get a JettyLogger instance, creating if not yet existing.
      org.slf4j.Logger getLogger​(java.lang.String name)
      Main interface for ILoggerFactory
      int getLoggerCount()  
      java.lang.String getLoggerLevel​(java.lang.String loggerName)  
      java.lang.String[] getLoggerNames()  
      javax.management.MBeanInfo getMBeanInfo()  
      java.lang.Object invoke​(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)  
      java.lang.String jmxContext()  
      void setAttribute​(javax.management.Attribute attribute)  
      javax.management.AttributeList setAttributes​(javax.management.AttributeList attributes)  
      boolean setLoggerLevel​(java.lang.String loggerName, java.lang.String levelName)  
      • Methods inherited from class java.lang.Object

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

      • jmxContext

        public java.lang.String jmxContext()
      • getJettyLogger

        public JettyLogger getJettyLogger​(java.lang.String name)
        Get a JettyLogger instance, creating if not yet existing.
        Parameters:
        name - the name of the logger
        Returns:
        the JettyLogger instance
      • getLogger

        public org.slf4j.Logger getLogger​(java.lang.String name)
        Main interface for ILoggerFactory
        Specified by:
        getLogger in interface org.slf4j.ILoggerFactory
        Parameters:
        name - the name of the logger
        Returns:
        the Slf4j Logger
      • getLoggerNames

        public java.lang.String[] getLoggerNames()
      • getLoggerCount

        public int getLoggerCount()
      • getLoggerLevel

        public java.lang.String getLoggerLevel​(java.lang.String loggerName)
      • setLoggerLevel

        public boolean setLoggerLevel​(java.lang.String loggerName,
                                      java.lang.String levelName)
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
                                      throws javax.management.AttributeNotFoundException
        Specified by:
        getAttribute in interface javax.management.DynamicMBean
        Throws:
        javax.management.AttributeNotFoundException
      • setAttribute

        public void setAttribute​(javax.management.Attribute attribute)
                          throws javax.management.AttributeNotFoundException
        Specified by:
        setAttribute in interface javax.management.DynamicMBean
        Throws:
        javax.management.AttributeNotFoundException
      • getAttributes

        public javax.management.AttributeList getAttributes​(java.lang.String[] attributeNames)
        Specified by:
        getAttributes in interface javax.management.DynamicMBean
      • setAttributes

        public javax.management.AttributeList setAttributes​(javax.management.AttributeList attributes)
        Specified by:
        setAttributes in interface javax.management.DynamicMBean
      • invoke

        public java.lang.Object invoke​(java.lang.String actionName,
                                       java.lang.Object[] params,
                                       java.lang.String[] signature)
                                throws javax.management.MBeanException,
                                       javax.management.ReflectionException
        Specified by:
        invoke in interface javax.management.DynamicMBean
        Throws:
        javax.management.MBeanException
        javax.management.ReflectionException
      • getMBeanInfo

        public javax.management.MBeanInfo getMBeanInfo()
        Specified by:
        getMBeanInfo in interface javax.management.DynamicMBean