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