class Sawmill::Entry::EndRecord

A log entry signalling the end of a log record.

Attributes

level[R]

The log level as a Sawmill::Level object

progname[R]

The progname as a string

record_id[R]

The record ID as a string

timestamp[R]

The timestamp as a Time object

Public Class Methods

new(level_, timestamp_, progname_, record_id_) click to toggle source
# File lib/sawmill/entry.rb, line 204
def initialize(level_, timestamp_, progname_, record_id_)
  @level = level_
  @timestamp = timestamp_
  @progname = progname_.to_s
  @record_id = record_id_.nil? ? nil : record_id_.to_s
end

Public Instance Methods

type() click to toggle source

Returns :end_record

# File lib/sawmill/entry.rb, line 213
def type; :end_record; end