Sha256: 37b3bd6fcac090db8ba631d3a376eb2f1c9608461b179acb54f1db7e9e10d9b2

Contents?: true

Size: 223 Bytes

Versions: 68

Compression:

Stored size: 223 Bytes

Contents

module Locomotive
  module Logger

    def self.method_missing(meth, message, &block)
      if Locomotive.config.enable_logs == true
        Rails.logger.send(meth, "[LocomotiveCMS] #{message}")
      end
    end

  end
end

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
locomotivecms-3.3.0.rc1 lib/locomotive/logger.rb
locomotivecms-3.2.0 lib/locomotive/logger.rb
locomotivecms-3.2.0.rc2 lib/locomotive/logger.rb
locomotivecms-3.2.0.rc1 lib/locomotive/logger.rb
locomotivecms-3.1.1 lib/locomotive/logger.rb
locomotivecms-3.1.0 lib/locomotive/logger.rb
locomotivecms-3.1.0.rc3 lib/locomotive/logger.rb
locomotivecms-3.1.0.rc2 lib/locomotive/logger.rb
locomotivecms-3.1.0.rc1 lib/locomotive/logger.rb
locomotivecms-3.0.1 lib/locomotive/logger.rb
locomotivecms-3.0.0 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc7 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc6 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc5 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc4 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc3 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc2 lib/locomotive/logger.rb
locomotivecms-3.0.0.rc1 lib/locomotive/logger.rb
locomotivecms-3.0.0.pre.beta.1 lib/locomotive/logger.rb
locomotivecms-3.0.0.pre.alpha.3 lib/locomotive/logger.rb