locomotivecms/engine

View on GitHub
lib/locomotive/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
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