Module: Puppet::ReportAllTheThings::LogMixin

Included in:
Util::Log
Defined in:
lib/puppet/reportallthethings/helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_data_hash



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/puppet/reportallthethings/helper.rb', line 33

def to_data_hash
  {
    'level' => @level,
    'message' => to_s,
    'source' => @source,
    'tags' => @tags.to_a,
    'time' => @time.iso8601(9),
    'file' => @file,
    'line' => @line,
  }
end