com.bea.logging
Interface INestedDiagnosticContext

All Known Implementing Classes:
LogCategory

public interface INestedDiagnosticContext

The public interface to the Nested Diagnostic Context object of the ADK Logging Framework

Author:
Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.

Method Summary
 void clearNDC()
          Clear any nested disgnostic information.
 Stack cloneNDCStack()
          Clone the diagnostic context for the current thread.
 String getNDC()
          Used when printing the diagnostic context.
 int getNDCDepth()
          Get the current nesting depth of this diagnostic context
 void inheritNDC(Stack stack)
          Inherit the diagnostic context of another thread.
 void popNDC()
          Clients should call this method before leaving a diagnostic context.
 void pushNDC(String message)
          Push new diagnostic context information for the current thread.
 void removeNDC()
          Remove the diagnostic context for this thread
 void setNDCMaxDepth(int depth)
          Set maximum depth of this diagnostic context.
 

Method Detail

clearNDC

void clearNDC()
Clear any nested disgnostic information.


cloneNDCStack

Stack cloneNDCStack()
Clone the diagnostic context for the current thread.

Returns:
a stack for the current NDC

getNDC

String getNDC()
Used when printing the diagnostic context.


getNDCDepth

int getNDCDepth()
Get the current nesting depth of this diagnostic context


inheritNDC

void inheritNDC(Stack stack)
Inherit the diagnostic context of another thread.


popNDC

void popNDC()
Clients should call this method before leaving a diagnostic context.


pushNDC

void pushNDC(String message)
Push new diagnostic context information for the current thread.


removeNDC

void removeNDC()
Remove the diagnostic context for this thread


setNDCMaxDepth

void setNDCMaxDepth(int depth)
Set maximum depth of this diagnostic context.