File: GDC

package info (click to toggle)
ruby-log4r 1.1.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: ruby: 2,744; xml: 96; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
= GDC

The GDC class implements a copy of the Global Diagnostic Context, which
is not part of the Apache Log4j library, as of this writing (10 Jan 2009).

The GDC is like the NDC and MDC classes, only it is global to the
application (see NDC and MDC for details on those classes).

The GDC is local to the main thread, and any new threads will return
the value of the current GDC set in the main thread.

Only the main thread can set the GDC, any other threads that
attempt to will raise an exception.