Sha256: d8c94e9b80cf0479b2c4a7df29cdf767548a648b19c010479fbf2ed4ae8c4d60
Contents?: true
Size: 364 Bytes
Versions: 13
Compression:
Stored size: 364 Bytes
Contents
module Alchemy module Logger # Logs a debug message to the Rails standard logger and adds some nicer formatting def self.warn(message, caller_string) Rails.logger.debug %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n) nil end def log_warning(message) Alchemy::Logger.warn(message, caller.first) end end end
Version data entries
13 entries across 13 versions & 1 rubygems