module for logger handling
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