Package org.hibernate.testing.logger
Class TestableLoggerProvider
- java.lang.Object
-
- org.hibernate.testing.logger.TestableLoggerProvider
-
- All Implemented Interfaces:
org.jboss.logging.LoggerProvider
public class TestableLoggerProvider extends Object implements org.jboss.logging.LoggerProvider
ALoggerProvider
for JBoss Logger. See also META-INF/services/org.jboss.logging.LoggerProvider
-
-
Constructor Summary
Constructors Constructor Description TestableLoggerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
void
removeMdc(String key)
void
setNdcMaxDepth(int maxDepth)
-
-
-
Method Detail
-
getLogger
public org.jboss.logging.Logger getLogger(String name)
- Specified by:
getLogger
in interfaceorg.jboss.logging.LoggerProvider
-
clearMdc
public void clearMdc()
- Specified by:
clearMdc
in interfaceorg.jboss.logging.LoggerProvider
-
putMdc
public Object putMdc(String key, Object value)
- Specified by:
putMdc
in interfaceorg.jboss.logging.LoggerProvider
-
getMdc
public Object getMdc(String key)
- Specified by:
getMdc
in interfaceorg.jboss.logging.LoggerProvider
-
removeMdc
public void removeMdc(String key)
- Specified by:
removeMdc
in interfaceorg.jboss.logging.LoggerProvider
-
getMdcMap
public Map<String,Object> getMdcMap()
- Specified by:
getMdcMap
in interfaceorg.jboss.logging.LoggerProvider
-
clearNdc
public void clearNdc()
- Specified by:
clearNdc
in interfaceorg.jboss.logging.LoggerProvider
-
getNdc
public String getNdc()
- Specified by:
getNdc
in interfaceorg.jboss.logging.LoggerProvider
-
getNdcDepth
public int getNdcDepth()
- Specified by:
getNdcDepth
in interfaceorg.jboss.logging.LoggerProvider
-
popNdc
public String popNdc()
- Specified by:
popNdc
in interfaceorg.jboss.logging.LoggerProvider
-
peekNdc
public String peekNdc()
- Specified by:
peekNdc
in interfaceorg.jboss.logging.LoggerProvider
-
pushNdc
public void pushNdc(String message)
- Specified by:
pushNdc
in interfaceorg.jboss.logging.LoggerProvider
-
setNdcMaxDepth
public void setNdcMaxDepth(int maxDepth)
- Specified by:
setNdcMaxDepth
in interfaceorg.jboss.logging.LoggerProvider
-
-