A log entry signalling the beginning of a log record.
The log level as a Sawmill::Level object
The progname as a string
The record ID as a string
The timestamp as a Time object
# File lib/sawmill/entry.rb, line 149 def initialize(level_, timestamp_, progname_, record_id_) @level = level_ @timestamp = timestamp_ @progname = progname_.to_s @progname.gsub!(%r\s+/, '') @record_id = record_id_.nil? ? nil : record_id_.to_s @record_id.gsub!(%r\s+/, '') if @record_id end
Returns :begin_record
# File lib/sawmill/entry.rb, line 160 def type; :begin_record; end