/usr/lib/ruby/vendor_ruby/lumberjack/device/null.rb is in ruby-lumberjack 1.0.13-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 | # frozen_string_literals: true
require 'date'
module Lumberjack
class Device
# This is a logging device that produces no output. It can be useful in
# testing environments when log file output is not useful.
class Null < Device
def initialize(*args)
end
def write(entry)
end
end
end
end
|