Class: PkernelJce::GConf
- Inherits:
-
Object
- Object
- PkernelJce::GConf
- Includes:
- Singleton
- Defined in:
- lib/pkernel_jce/global.rb
Instance Attribute Summary collapse
-
#glog ⇒ Object
readonly
Returns the value of attribute glog.
-
#logger_params ⇒ Object
readonly
Returns the value of attribute logger_params.
Instance Method Summary collapse
-
#initialize ⇒ GConf
constructor
A new instance of GConf.
Constructor Details
#initialize ⇒ GConf
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
#glog ⇒ Object (readonly)
Returns the value of attribute glog.
8 9 10 |
# File 'lib/pkernel_jce/global.rb', line 8 def glog @glog end |
#logger_params ⇒ Object (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 |