Sha256: 1c361d120e23b1538056fed1d0be5cab43db6bfa13c0471aa9369b3a3af2d8d0

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Ftpd

  # A logger that does not log.
  # Quacks enough like a Logger to fool Ftpd.

  class NullLogger

    def self.stub(method_name)
      define_method method_name do |*args|
      end
    end

    stub :unknown
    stub :fatal
    stub :error
    stub :warn
    stub :info
    stub :debug

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ftpd-2.1.0 lib/ftpd/null_logger.rb
ftpd-2.0.5 lib/ftpd/null_logger.rb
ftpd-2.0.4 lib/ftpd/null_logger.rb
ftpd-2.0.3 lib/ftpd/null_logger.rb
ftpd-2.0.2 lib/ftpd/null_logger.rb
ftpd-2.0.1 lib/ftpd/null_logger.rb
ftpd-2.0.0 lib/ftpd/null_logger.rb