Sha256: f34968ef6595922d2416c7cab04cd93a7f4a5c2f34ba0386627d4a8c0c9f8888

Contents?: true

Size: 324 Bytes

Versions: 10

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literals: true

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lumberjack-1.2.7 lib/lumberjack/device/null.rb
lumberjack-1.2.6 lib/lumberjack/device/null.rb
lumberjack-1.2.5 lib/lumberjack/device/null.rb
lumberjack-1.2.4 lib/lumberjack/device/null.rb
lumberjack-1.2.3 lib/lumberjack/device/null.rb
lumberjack-1.2.2 lib/lumberjack/device/null.rb
lumberjack-1.2.1 lib/lumberjack/device/null.rb
lumberjack-1.2.0 lib/lumberjack/device/null.rb
lumberjack-1.1.1 lib/lumberjack/device/null.rb
lumberjack-1.1.0 lib/lumberjack/device/null.rb