Sha256: 89c838bbcda57c6b58eafeb9747260bf04ea9f0c3a9dc5a55d810fc2a146eb9b

Contents?: true

Size: 218 Bytes

Versions: 39

Compression:

Stored size: 218 Bytes

Contents

require 'time'

module Appfuel
  class LogFormatter < Logger::Formatter
    def self.call(severity, time, progname, msg)
      "#{progname} #{time.utc.iso8601} p-#{Process.pid} #{severity}: #{msg}\n"
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
appfuel-0.5.12 lib/appfuel/log_formatter.rb
appfuel-0.5.11 lib/appfuel/log_formatter.rb
appfuel-0.5.10 lib/appfuel/log_formatter.rb
appfuel-0.5.9 lib/appfuel/log_formatter.rb
appfuel-0.5.8 lib/appfuel/log_formatter.rb
appfuel-0.5.7 lib/appfuel/log_formatter.rb
appfuel-0.5.6 lib/appfuel/log_formatter.rb
appfuel-0.5.5 lib/appfuel/log_formatter.rb
appfuel-0.5.4 lib/appfuel/log_formatter.rb
appfuel-0.5.3 lib/appfuel/log_formatter.rb
appfuel-0.5.2 lib/appfuel/log_formatter.rb
appfuel-0.5.1 lib/appfuel/log_formatter.rb
appfuel-0.5.0 lib/appfuel/log_formatter.rb
appfuel-0.4.5 lib/appfuel/log_formatter.rb
appfuel-0.4.4 lib/appfuel/log_formatter.rb
appfuel-0.4.3 lib/appfuel/log_formatter.rb
appfuel-0.4.2 lib/appfuel/log_formatter.rb
appfuel-0.4.1 lib/appfuel/log_formatter.rb
appfuel-0.4.0 lib/appfuel/log_formatter.rb