Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

    public void clearNDC()

  Clear any nested disgnostic information.

### cloneNDCStack

    public Stack cloneNDCStack()

  Clone the diagnostic context for the current thread.

  Returns:
    a stack for the current NDC

### getNDC

    public String getNDC()

  Used when printing the diagnostic context.

### getNDCDepth

    public int getNDCDepth()

  Get the current nesting depth of this diagnostic context

### inheritNDC

    public void inheritNDC(Stack stack)

  Inherit the diagnostic context of another thread.

### popNDC

    public void popNDC()

  Clients should call this method before leaving a diagnostic context.

### pushNDC

    public void pushNDC(String message)

  Push new diagnostic context information for the current thread.

### removeNDC

    public void removeNDC()

  Remove the diagnostic context for this thread

### setNDCMaxDepth

    public void setNDCMaxDepth(int depth)

  Set maximum depth of this diagnostic context.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD