module Alchemy::Logger

Public Class Methods

warn(message, caller_string) click to toggle source

Logs a debug message to the Rails standard logger and adds some nicer formatting

# File lib/alchemy/logger.rb, line 6
def self.warn(message, caller_string)
  Rails.logger.debug %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n)
  nil
end

Public Instance Methods

log_warning(message) click to toggle source
# File lib/alchemy/logger.rb, line 11
def log_warning(message)
  Alchemy::Logger.warn(message, caller(1..1))
end