Parent

Class/Module Index [+]

Quicksearch

Fluent::TextFormatter::JSONFormatter

Public Instance Methods

configure(conf) click to toggle source
# File lib/fluent/formatter.rb, line 86
def configure(conf)
  super

  if @time_as_epoch
    if @include_time_key
      @include_time_key = false
    else
      $log.warn "include_time_key is false so ignore time_as_epoch"
      @time_as_epoch = false
    end
  end
end
format(tag, time, record) click to toggle source
# File lib/fluent/formatter.rb, line 99
def format(tag, time, record)
  filter_record(tag, time, record)
  record[@time_key] = time if @time_as_epoch
  "#{Yajl.dump(record)}\n"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.