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.
Methods inherited from class Object
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.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. By continuing to use this site you are giving us your consent to do this.