public class DefaultLogContext extends Object implements LogContext
Constructor and Description |
---|
DefaultLogContext() |
Modifier and Type | Method and Description |
---|---|
void |
pop()
Cleanup diagnostic data from logger context.
|
void |
push(String diagnosticContext)
Push diagnostic context data on logger related to current thread.
|
public void push(String diagnosticContext)
LogContext
LogContext.pop()
is called on current thread.push
in interface LogContext
diagnosticContext
- diagnostic context data.public void pop()
LogContext
LogContext.push(String)
with this pop; if this
method is not called pushed diagnostic data remains on thread till thread terminates.pop
in interface LogContext
Copyright © 2018. All rights reserved.