Skip to content
This repository
tree: 572c3d5178
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.439 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'logger'

module ActiveSupport
  class Logger < ::Logger
    def initialize(*args)
      super
      @formatter = SimpleFormatter.new
    end

    # Simple formatter which only displays the message.
    class SimpleFormatter < ::Logger::Formatter
      # This method is invoked when a log event occurs
      def call(severity, timestamp, progname, msg)
        "#{String === msg ? msg : msg.inspect}\n"
      end
    end
  end
end
Something went wrong with that request. Please try again.