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

Version Path
alchemy_cms-3.5.0 lib/alchemy/logger.rb
alchemy_cms-3.4.2 lib/alchemy/logger.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/logger.rb
alchemy_cms-3.5.0.rc1 lib/alchemy/logger.rb
alchemy_cms-3.4.1 lib/alchemy/logger.rb
alchemy_cms-3.3.3 lib/alchemy/logger.rb
alchemy_cms-3.3.2 lib/alchemy/logger.rb
alchemy_cms-3.4.0 lib/alchemy/logger.rb
alchemy_cms-3.4.0.rc1 lib/alchemy/logger.rb
alchemy_cms-3.3.1 lib/alchemy/logger.rb
alchemy_cms-3.3.0 lib/alchemy/logger.rb
alchemy_cms-3.3.0.rc2 lib/alchemy/logger.rb
alchemy_cms-3.3.0.rc1 lib/alchemy/logger.rb