public class LogProviderImpl extends Object implements LogProvider, org.springframework.beans.factory.InitializingBean, LogProviderManagementMBean
Constructor and Description |
---|
LogProviderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.slf4j.Logger |
createLog(String loggerName)
Use
Logger to create the Log |
org.slf4j.Logger |
getLog(String name)
Return the Log for the bean with the given name
|
String |
getLogLevel(String component) |
Map<String,String> |
getLogLevels() |
List<String> |
getSupportedLogLevels() |
void |
registerLog(String beanName,
org.slf4j.Logger log)
Register a
Logger for a beanName. |
void |
setLogLevel(String component,
String loglevel) |
void |
setLogMappings(Map<String,String> logs) |
protected org.slf4j.Logger createLog(String loggerName)
Logger
to create the LogloggerName
- public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public org.slf4j.Logger getLog(String name)
LogProvider
getLog
in interface LogProvider
LogProvider.getLog(java.lang.String)
public void registerLog(String beanName, org.slf4j.Logger log)
LogProvider
Logger
for a beanName. The registered Log will get
returned by LogProvider.getLog(String)
registerLog
in interface LogProvider
LogProvider.registerLog(java.lang.String, org.slf4j.Logger)
public List<String> getSupportedLogLevels()
getSupportedLogLevels
in interface LogProviderManagementMBean
LogProviderManagementMBean.getSupportedLogLevels()
public Map<String,String> getLogLevels()
getLogLevels
in interface LogProviderManagementMBean
LogProviderManagementMBean.getLogLevels()
public String getLogLevel(String component)
getLogLevel
in interface LogProviderManagementMBean
LogProviderManagementMBean.getLogLevel(java.lang.String)
public void setLogLevel(String component, String loglevel)
setLogLevel
in interface LogProviderManagementMBean
LogProviderManagementMBean.setLogLevel(String, String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.