| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Logger | |
| public Object | |
| public Map | |
| public String | Returns: the current value set ornull if no value was setRetrieves the current values set for the nested diagnostics context. |
| public int | Returns: the current depth of the stackThe current depth of the nested diagnostics context. |
| public String | |
| public String | Returns: the top value from the stack or an empty string if no value was setPops top value from the stack and returns it. |
| public void | |
| public Object | |
| public void | |
| public void | setNdcMaxDepth(int
the maximum depth to set maxDepth)Sets maximum depth of the stack removing any entries below the maximum depth. |
| clearMdc | back to summary |
|---|---|
| public void clearMdc() Removes all entries from the message diagnostics context. | |
| clearNdc | back to summary |
|---|---|
| public void clearNdc() Clears the nested diagnostics context. | |
| getLogger | back to summary |
|---|---|
| public Logger getLogger(String name) Returns a logger which is backed by a logger from the log provider. Note this should never be | |
| getMdc | back to summary |
|---|---|
| public Object getMdc(String key) Returns the value for the key on the message diagnostics context or | |
| getMdcMap | back to summary |
|---|---|
| public Map Returns the map from the context. Note that in most implementations this is an expensive operation and should be used sparingly. | |
| getNdc | back to summary |
|---|---|
| public String getNdc() Retrieves the current values set for the nested diagnostics context.
| |
| getNdcDepth | back to summary |
|---|---|
| public int getNdcDepth() The current depth of the nested diagnostics context.
| |
| peekNdc | back to summary |
|---|---|
| public String peekNdc() Peeks at the top value from the stack and returns it.
| |
| popNdc | back to summary |
|---|---|
| public String popNdc() Pops top value from the stack and returns it.
| |
| pushNdc | back to summary |
|---|---|
| public void pushNdc(String message) Pushes a value to the nested diagnostics context stack.
| |
| putMdc | back to summary |
|---|---|
| public Object putMdc(String key, Object value) Puts the value onto the message diagnostics context. | |
| removeMdc | back to summary |
|---|---|
| public void removeMdc(String key) Removes the value from the message diagnostics context.
| |
| setNdcMaxDepth | back to summary |
|---|---|
| public void setNdcMaxDepth(int maxDepth) Sets maximum depth of the stack removing any entries below the maximum depth.
| |