Class: Skiima::Logger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/skiima/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Logger

Returns a new instance of Logger.



14
15
16
17
18
# File 'lib/skiima/logger.rb', line 14

def initialize(opts = {})
  @logging_out = get_logger_out(opts[:logging_out])
  @logging_level = get_logger_level(opts[:logging_level])
  create_logger
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



12
13
14
# File 'lib/skiima/logger.rb', line 12

def logger
  @logger
end

#logging_levelObject

Returns the value of attribute logging_level.



12
13
14
# File 'lib/skiima/logger.rb', line 12

def logging_level
  @logging_level
end

#logging_outObject

Returns the value of attribute logging_out.



12
13
14
# File 'lib/skiima/logger.rb', line 12

def logging_out
  @logging_out
end