/usr/lib/ruby/vendor_ruby/lograge/formatters/lines.rb is in ruby-lograge 0.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | module Lograge
module Formatters
class Lines
def call(data)
load_dependencies
::Lines.dump(data)
end
def load_dependencies
require 'lines'
rescue LoadError
puts 'You need to install the lines gem to use this output.'
raise
end
end
end
end
|