bdurand/lumberjack

View on GitHub
lib/lumberjack/device/null.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: 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