Class: Hawkular::Logger

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

Instance Method Summary collapse

Constructor Details

#initialize(file = STDOUT) ⇒ Logger

Returns a new instance of Logger



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

def initialize(file = STDOUT)
  @logger = ::Logger.new(file)
end

Instance Method Details

#log(message, priority = :info) ⇒ Object



10
11
12
# File 'lib/hawkular/logger.rb', line 10

def log(message, priority = :info)
  @logger.send(priority, message) if EnvConfig.log_response?
end