Class: CheckoutSdk::SimpleLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/simple_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min_level = Logger::INFO) ⇒ SimpleLogger

Returns a new instance of SimpleLogger.



7
8
9
10
# File 'lib/checkout_sdk/simple_logger.rb', line 7

def initialize(min_level = Logger::INFO)
  @logger = Logger.new($stdout)
  @logger.level = min_level
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



5
6
7
# File 'lib/checkout_sdk/simple_logger.rb', line 5

def logger
  @logger
end