Class JDKLoggerProvider
java.lang.Object
org.jboss.logging.JDKLoggerProvider
- All Implemented Interfaces:
LoggerProvider
An implementation of the log provider for the
JDK Log Manager.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LoggerProvider
clearMdc, clearNdc, getMdc, getMdcMap, getNdc, getNdcDepth, peekNdc, popNdc, pushNdc, putMdc, removeMdc, setNdcMaxDepthModifier and TypeMethodDescriptionvoidclearMdc()Removes all entries from the message diagnostics context.voidclearNdc()Clears the nested diagnostics context.Returns the value for the key on the message diagnostics context ornullif no value was found.Returns the map from the context.getNdc()Retrieves the current values set for the nested diagnostics context.intThe current depth of the nested diagnostics context.peekNdc()Peeks at the top value from the stack and returns it.popNdc()Pops top value from the stack and returns it.voidPushes a value to the nested diagnostics context stack.Puts the value onto the message diagnostics context.voidRemoves the value from the message diagnostics context.voidsetNdcMaxDepth(int maxDepth) Sets maximum depth of the stack removing any entries below the maximum depth.
-
Constructor Details
-
JDKLoggerProvider
public JDKLoggerProvider()
-
-
Method Details
-
getLogger
Description copied from interface:LoggerProviderReturns a logger which is backed by a logger from the log provider.Note: this should never be
null- Specified by:
getLoggerin interfaceLoggerProvider- Parameters:
name- the name of the logger- Returns:
- a logger for the log provider logger.
-
clearMdc
public void clearMdc() -
getMdc
-
getMdcMap
-
putMdc
-
removeMdc
-
clearNdc
public void clearNdc() -
getNdc
-
getNdcDepth
public int getNdcDepth() -
peekNdc
-
popNdc
-
pushNdc
-
setNdcMaxDepth
public void setNdcMaxDepth(int maxDepth)
-