Class: Oqs::Global

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGlobal

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

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/oqs/global.rb', line 9

def logger
  @logger
end