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.7.0 lib/appfuel/log_formatter.rb
appfuel-0.6.16 lib/appfuel/log_formatter.rb
appfuel-0.6.15 lib/appfuel/log_formatter.rb
appfuel-0.6.14 lib/appfuel/log_formatter.rb
appfuel-0.6.13 lib/appfuel/log_formatter.rb
appfuel-0.6.12 lib/appfuel/log_formatter.rb
appfuel-0.6.11 lib/appfuel/log_formatter.rb
appfuel-0.6.10 lib/appfuel/log_formatter.rb
appfuel-0.6.9 lib/appfuel/log_formatter.rb
appfuel-0.6.8 lib/appfuel/log_formatter.rb
appfuel-0.6.7 lib/appfuel/log_formatter.rb
appfuel-0.6.6 lib/appfuel/log_formatter.rb
appfuel-0.6.5 lib/appfuel/log_formatter.rb
appfuel-0.6.4 lib/appfuel/log_formatter.rb
appfuel-0.6.3 lib/appfuel/log_formatter.rb
appfuel-0.6.1 lib/appfuel/log_formatter.rb
appfuel-0.5.16 lib/appfuel/log_formatter.rb
appfuel-0.5.15 lib/appfuel/log_formatter.rb
appfuel-0.5.14 lib/appfuel/log_formatter.rb
appfuel-0.5.13 lib/appfuel/log_formatter.rb