Class: Hawkular::Logger
- Inherits:
-
Object
- Object
- Hawkular::Logger
- Defined in:
- lib/hawkular/logger.rb
Instance Method Summary collapse
-
#initialize(file = STDOUT) ⇒ Logger
constructor
A new instance of Logger.
- #log(message, priority = :info) ⇒ Object
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(, priority = :info) @logger.send(priority, ) if EnvConfig.log_response? end |