Module: Castle::Logger

Defined in:
lib/castle/logger.rb

Overview

module for logger handling

Class Method Summary collapse

Class Method Details

.call(message, data = nil, config = nil) ⇒ Object

Parameters:



10
11
12
13
14
15
16
# File 'lib/castle/logger.rb', line 10

def call(message, data = nil, config = nil)
  logger = (config || Castle.config).logger

  return unless logger

  logger.info("[CASTLE] #{message} #{data}".strip)
end