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

Version Path
alchemy_cms-3.2.1 lib/alchemy/logger.rb
alchemy_cms-3.1.3 lib/alchemy/logger.rb
lc_alchemy_cms-3.2.1 lib/alchemy/logger.rb
lc_alchemy_cms-3.2.0 lib/alchemy/logger.rb
alchemy_cms-3.2.0 lib/alchemy/logger.rb
alchemy_cms-3.2.0.rc1 lib/alchemy/logger.rb
alchemy_cms-3.2.0.beta lib/alchemy/logger.rb
alchemy_cms-2.9.1 lib/alchemy/logger.rb
alchemy_cms-3.1.1 lib/alchemy/logger.rb
alchemy_cms-3.0.4 lib/alchemy/logger.rb
alchemy_cms-3.1.0 lib/alchemy/logger.rb
alchemy_cms-3.1.0.rc3 lib/alchemy/logger.rb
alchemy_cms-3.1.0.rc2 lib/alchemy/logger.rb
alchemy_cms-3.1.0.rc1 lib/alchemy/logger.rb
alchemy_cms-3.1.0.beta6 lib/alchemy/logger.rb
alchemy_cms-3.1.0.beta5 lib/alchemy/logger.rb
alchemy_cms-3.1.0.beta4 lib/alchemy/logger.rb
alchemy_cms-3.0.3 lib/alchemy/logger.rb
alchemy_cms-3.1.0.beta3 lib/alchemy/logger.rb
alchemy_cms-3.1.0.beta2 lib/alchemy/logger.rb