Sha256: bba28299626b535ac85b8c4203485aee28d59e798b991670126e1ce885f8d555

Contents?: true

Size: 391 Bytes

Versions: 96

Compression:

Stored size: 391 Bytes

Contents

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

96 entries across 96 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/logger/formatter.rb
terraspace-2.2.16 lib/terraspace/logger/formatter.rb
terraspace-2.2.15 lib/terraspace/logger/formatter.rb
terraspace-2.2.14 lib/terraspace/logger/formatter.rb
terraspace-2.2.13 lib/terraspace/logger/formatter.rb
terraspace-2.2.12 lib/terraspace/logger/formatter.rb
terraspace-2.2.11 lib/terraspace/logger/formatter.rb
terraspace-2.2.10 lib/terraspace/logger/formatter.rb
terraspace-2.2.9 lib/terraspace/logger/formatter.rb
terraspace-2.2.8 lib/terraspace/logger/formatter.rb
terraspace-2.2.7 lib/terraspace/logger/formatter.rb
terraspace-2.2.6 lib/terraspace/logger/formatter.rb
terraspace-2.2.5 lib/terraspace/logger/formatter.rb
terraspace-2.2.4 lib/terraspace/logger/formatter.rb
terraspace-2.2.3 lib/terraspace/logger/formatter.rb
terraspace-2.2.2 lib/terraspace/logger/formatter.rb
terraspace-2.2.1 lib/terraspace/logger/formatter.rb
terraspace-2.2.0 lib/terraspace/logger/formatter.rb
terraspace-2.1.7 lib/terraspace/logger/formatter.rb
terraspace-2.1.6 lib/terraspace/logger/formatter.rb