In Files

Parent

Methods

Log4r::GDC

See log4r/GDC.rb

Public Class Methods

clear() click to toggle source

(Not documented)

# File log4r/GDC.rb, line 18
    def self.clear()
      Thread.main[GDCNAME] = ""
    end
get() click to toggle source

(Not documented)

# File log4r/GDC.rb, line 22
    def self.get()
      $globalGDCLock.synchronize do
        if ( Thread.main[GDCNAME] == nil ) then
          Thread.main[GDCNAME] = $0
        end
      end
      return Thread.main[GDCNAME]
    end
set( a_name ) click to toggle source

(Not documented)

# File log4r/GDC.rb, line 31
    def self.set( a_name )
      if ( Thread.current != Thread.main ) then
        raise "Can only initialize Global Diagnostic Context from Thread.main" 
      end
      $globalGDCLock.synchronize do
        Thread.main[GDCNAME] = a_name
      end
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.