Class: Cch::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/cch/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Logger

Returns a new instance of Logger.



8
9
10
11
# File 'lib/cch/logger.rb', line 8

def initialize(options = {})
  @threshold = options[:threshold] || :info
  @implementation = options[:implementation] || Loggers::Stdout.new
end

Instance Attribute Details

#implementationObject

Returns the value of attribute implementation.



6
7
8
# File 'lib/cch/logger.rb', line 6

def implementation
  @implementation
end

#thresholdObject

Returns the value of attribute threshold.



6
7
8
# File 'lib/cch/logger.rb', line 6

def threshold
  @threshold
end