Class: Oqs::Global
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Global
constructor
A new instance of Global.
Constructor Details
#initialize ⇒ Global
Returns a new instance of Global.
10 11 12 13 14 15 16 17 |
# File 'lib/oqs/global.rb', line 10 def initialize logPath = ENV['OQS_LOG_PATH'] if not (logPath.nil? or logPath.empty?) @logger = Tlogger.new(logPath,10,1024*1024*10) else @logger = Tlogger.new end end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/oqs/global.rb', line 9 def logger @logger end |