Sha256: b96127878f9158a708a0469d7e8968ca635eb6192834f0bff0f1d78badb39ea6
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true module RailsMiniProfiler module Logger def self.new(logger) logger = logger.dup logger.formatter = logger.formatter ? logger.formatter.dup : ActiveSupport::Logger::SimpleFormatter.new logger.formatter.extend Formatter logger.extend(self) end module Formatter def call(severity, timestamp, progname, msg) super(severity, timestamp, progname, "[RailsMiniProfiler] #{msg}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems