Sha256: d540e4886bf1089206309c2acf8d837ed52372da663b5ddfbb77cbbb22f4860c
Contents?: true
Size: 373 Bytes
Versions: 38
Compression:
Stored size: 373 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) return nil end def log_warning(message) Alchemy::Logger.warn(message, caller.first) end end end
Version data entries
38 entries across 38 versions & 2 rubygems