Sha256: e924f5c6d6a8653d81d75bcade4786a08030363197b79564baca462b1959acc1

Contents?: true

Size: 343 Bytes

Versions: 20

Compression:

Stored size: 343 Bytes

Contents

module SuperLogger
  class Formatter < ::Logger::Formatter
    include ActiveSupport::TaggedLogging::Formatter

    def call(severity, timestamp, progname, msg)
      format(
        "%s[%-5s] %s%s\n",
        timestamp.to_s,
        severity,
        progname ? "#{progname} -- " : nil,
        "#{tags_text}#{msg}"
      )
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
super_tools-2.1.0 lib/super_logger/formatter.rb
super_tools-0.0.26 lib/super_logger/formatter.rb
super_tools-0.0.25 lib/super_logger/formatter.rb
super_tools-0.0.21 lib/super_logger/formatter.rb
super_tools-0.0.20 lib/super_logger/formatter.rb
super_tools-0.0.17 lib/super_logger/formatter.rb
super_tools-0.0.15 lib/super_logger/formatter.rb
super_tools-0.0.14 lib/super_logger/formatter.rb
super_tools-0.0.13 lib/super_logger/formatter.rb
super_tools-0.0.12 lib/super_logger/formatter.rb
super_tools-0.0.11 lib/super_logger/formatter.rb
super_tools-0.0.10 lib/super_logger/formatter.rb
super_tools-0.0.9 lib/super_logger/formatter.rb
super_tools-0.0.8 lib/super_logger/formatter.rb
super_tools-0.0.7 lib/super_logger/formatter.rb
super_tools-0.0.6 lib/super_logger/formatter.rb
super_tools-0.0.5 lib/super_logger/formatter.rb
super_tools-0.0.4 lib/super_logger/formatter.rb
super_tools-0.0.3 lib/super_logger/formatter.rb
super_tools-0.0.2 lib/super_logger/formatter.rb