Class: PkernelJce::GConf

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/pkernel_jce/global.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGConf

Returns a new instance of GConf.



9
10
11
12
13
14
15
16
17
18
# File 'lib/pkernel_jce/global.rb', line 9

def initialize
  @logger_params = STDOUT
  if ENV['PKERNEL_DEBUG'] == "true"
    @glog = Tlogger::Tlogger.new(STDOUT)
  else
    @glog = Tlogger::Tlogger.new('pkernel.log',10,1024*1024*10)
  end
  @glog.tag = :pkernel_jce
  @glog.show_source
end

Instance Attribute Details

#glogObject (readonly)

Returns the value of attribute glog.



8
9
10
# File 'lib/pkernel_jce/global.rb', line 8

def glog
  @glog
end

#logger_paramsObject (readonly)

Returns the value of attribute logger_params.



8
9
10
# File 'lib/pkernel_jce/global.rb', line 8

def logger_params
  @logger_params
end