Sha256: 0d2db37860316c1b4b5d4fdfbe26e18e716aa0f535d09c9d3712a6cb8f9f2dde

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

class Lono::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

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/logger/formatter.rb
lono-8.0.0.pre.rc5 lib/lono/logger/formatter.rb
lono-8.0.0.pre.rc4 lib/lono/logger/formatter.rb
lono-8.0.0.pre.rc3 lib/lono/logger/formatter.rb
lono-8.0.0.pre.rc2 lib/lono/logger/formatter.rb
lono-8.0.0.pre.rc1 lib/lono/logger/formatter.rb