Sha256: 0aa5f16fa61fd19b5da8b188d045d3405851a832e099aee0b2c026c7fff0aa91

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

module PhiAttrs
  FORMAT = "%s %5s: %s\n"

  # https://github.com/ruby/ruby/blob/trunk/lib/logger.rb#L587
  class Formatter < ::Logger::Formatter
    def call(severity, timestamp, _progname, msg)
      format(FORMAT, format_datetime(timestamp), severity, msg2str(msg))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phi_attrs-0.3.2 lib/phi_attrs/formatter.rb
phi_attrs-0.3.1 lib/phi_attrs/formatter.rb
phi_attrs-0.3.0 lib/phi_attrs/formatter.rb
phi_attrs-0.2.4 lib/phi_attrs/formatter.rb
phi_attrs-0.2.2 lib/phi_attrs/formatter.rb
phi_attrs-0.2.1 lib/phi_attrs/formatter.rb
phi_attrs-0.2.0 lib/phi_attrs/formatter.rb