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.1.5 lib/ufo/logger/formatter.rb
ufo-6.1.4 lib/ufo/logger/formatter.rb
ufo-6.1.3 lib/ufo/logger/formatter.rb
ufo-6.1.2 lib/ufo/logger/formatter.rb
ufo-6.1.1 lib/ufo/logger/formatter.rb
ufo-6.1.0 lib/ufo/logger/formatter.rb
ufo-6.0.9 lib/ufo/logger/formatter.rb
ufo-6.0.8 lib/ufo/logger/formatter.rb
ufo-6.0.7 lib/ufo/logger/formatter.rb
ufo-6.0.6 lib/ufo/logger/formatter.rb
ufo-6.0.5 lib/ufo/logger/formatter.rb
ufo-6.0.4 lib/ufo/logger/formatter.rb
ufo-6.0.3 lib/ufo/logger/formatter.rb
ufo-6.0.2 lib/ufo/logger/formatter.rb
ufo-6.0.1 lib/ufo/logger/formatter.rb
ufo-6.0.0 lib/ufo/logger/formatter.rb