Sha256: 7620492d6521a8e1bce0fb4d75868d7e7fbe25b2c8b14778d39342a28714b68c

Contents?: true

Size: 384 Bytes

Versions: 36

Compression:

Stored size: 384 Bytes

Contents

class Ufo::Logger
  class Formatter < ::Logger::Formatter
    def call(severity, time, progname, msg)
      # careful changing the format. All::Summary uses a regexp on this format to remove the timestamp
      "[#{format_datetime(time)} ##{Process.pid} #{progname}]: #{msg}"
    end

  private
    def format_datetime(time)
      time.strftime("%Y-%m-%dT%H:%M:%S")
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/logger/formatter.rb
ufo-6.3.12 lib/ufo/logger/formatter.rb
ufo-6.3.11 lib/ufo/logger/formatter.rb
ufo-6.3.10 lib/ufo/logger/formatter.rb
ufo-6.3.9 lib/ufo/logger/formatter.rb
ufo-6.3.8 lib/ufo/logger/formatter.rb
ufo-6.3.7 lib/ufo/logger/formatter.rb
ufo-6.3.6 lib/ufo/logger/formatter.rb
ufo-6.3.5 lib/ufo/logger/formatter.rb
ufo-6.3.4 lib/ufo/logger/formatter.rb
ufo-6.3.3 lib/ufo/logger/formatter.rb
ufo-6.3.2 lib/ufo/logger/formatter.rb
ufo-6.3.1 lib/ufo/logger/formatter.rb
ufo-6.3.0 lib/ufo/logger/formatter.rb
ufo-6.2.5 lib/ufo/logger/formatter.rb
ufo-6.2.4 lib/ufo/logger/formatter.rb
ufo-6.2.3 lib/ufo/logger/formatter.rb
ufo-6.2.2 lib/ufo/logger/formatter.rb
ufo-6.2.1 lib/ufo/logger/formatter.rb
ufo-6.2.0 lib/ufo/logger/formatter.rb