dw.system
Class LogNDC
Object
dw.system.LogNDC
A Nested Diagnostic Context, or NDC in short, is an instrument to distinguish interleaved log output from different sources. Log output is typically interleaved when a server handles multiple script calls near-simultaneously.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
peek() : String
Looks at the last diagnostic context at the top of this NDC without removing it.
pop() : String
Clients should call this method before leaving a diagnostic context.
push(message : String) : void
Push new diagnostic context information for the current script execution.
remove() : void
Remove the diagnostic context for this script call.
Method Detail
peek
peek() : String
Looks at the last diagnostic context at the top of this NDC without removing it. The returned value is the value that was pushed last. If no context is available, then the empty string "" is returned.
Returns:
String The innermost diagnostic context.

pop
pop() : String
Clients should call this method before leaving a diagnostic context. The returned value is the value that was pushed last. If no context is available, then the empty string "" is returned. NOTE: The NDC is removed after every script execution.
Returns:
String The innermost diagnostic context.

push
push(message : String) : void
Push new diagnostic context information for the current script execution.
Parameters:
message - - The new diagnostic context information.

remove
remove() : void
Remove the diagnostic context for this script call.