Package org.eclipse.jetty.logging
Class JettyLoggerFactory
java.lang.Object
org.eclipse.jetty.logging.JettyLoggerFactory
- All Implemented Interfaces:
DynamicMBean,org.slf4j.ILoggerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) getAttributes(String[] attributeNames) getJettyLogger(String name) Get aJettyLoggerinstance, creating if not yet existing.org.slf4j.LoggerMain interface forILoggerFactoryintgetLoggerLevel(String loggerName) String[]voidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes) booleansetLoggerLevel(String loggerName, String levelName)
-
Constructor Details
-
JettyLoggerFactory
-
-
Method Details
-
jmxContext
-
getJettyLogger
Get aJettyLoggerinstance, creating if not yet existing.- Parameters:
name- the name of the logger- Returns:
- the JettyLogger instance
-
getLogger
Main interface forILoggerFactory- Specified by:
getLoggerin interfaceorg.slf4j.ILoggerFactory- Parameters:
name- the name of the logger- Returns:
- the Slf4j Logger
-
getLoggerNames
-
getLoggerCount
public int getLoggerCount() -
getLoggerLevel
-
setLoggerLevel
-
getAttribute
- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundException
-
setAttribute
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundException
-
getAttributes
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-