public class TestableLoggerProvider extends Object implements org.jboss.logging.LoggerProvider
LoggerProvider
for JBoss Logger.
See also META-INF/services/org.jboss.logging.LoggerProviderConstructor and Description |
---|
TestableLoggerProvider() |
Modifier and Type | Method and Description |
---|---|
void |
clearMdc() |
void |
clearNdc() |
org.jboss.logging.Logger |
getLogger(String name) |
Object |
getMdc(String key) |
Map<String,Object> |
getMdcMap() |
String |
getNdc() |
int |
getNdcDepth() |
String |
peekNdc() |
String |
popNdc() |
void |
pushNdc(String message) |
Object |
putMdc(String key,
Object val) |
void |
removeMdc(String key) |
void |
setNdcMaxDepth(int maxDepth) |
public org.jboss.logging.Logger getLogger(String name)
getLogger
in interface org.jboss.logging.LoggerProvider
public void clearMdc()
clearMdc
in interface org.jboss.logging.LoggerProvider
public Object getMdc(String key)
getMdc
in interface org.jboss.logging.LoggerProvider
public Map<String,Object> getMdcMap()
getMdcMap
in interface org.jboss.logging.LoggerProvider
public Object putMdc(String key, Object val)
putMdc
in interface org.jboss.logging.LoggerProvider
public void removeMdc(String key)
removeMdc
in interface org.jboss.logging.LoggerProvider
public void clearNdc()
clearNdc
in interface org.jboss.logging.LoggerProvider
public String getNdc()
getNdc
in interface org.jboss.logging.LoggerProvider
public int getNdcDepth()
getNdcDepth
in interface org.jboss.logging.LoggerProvider
public String peekNdc()
peekNdc
in interface org.jboss.logging.LoggerProvider
public String popNdc()
popNdc
in interface org.jboss.logging.LoggerProvider
public void pushNdc(String message)
pushNdc
in interface org.jboss.logging.LoggerProvider
public void setNdcMaxDepth(int maxDepth)
setNdcMaxDepth
in interface org.jboss.logging.LoggerProvider
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.