Sha256: 966aa5507900475ae8d64bac1b7b772d1c235c15fbbff6918b2c7865d5f03b98

Contents?: true

Size: 313 Bytes

Versions: 19

Compression:

Stored size: 313 Bytes

Contents

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

19 entries across 19 versions & 2 rubygems

Version Path
ftpd-1.1.1 lib/ftpd/null_logger.rb
ftpd-1.1.0 lib/ftpd/null_logger.rb
investtools-ftpd-1.0.1 lib/ftpd/null_logger.rb
ftpd-1.0.1 lib/ftpd/null_logger.rb
ftpd-1.0.0 lib/ftpd/null_logger.rb
ftpd-0.17.0 lib/ftpd/null_logger.rb
ftpd-0.16.0 lib/ftpd/null_logger.rb
ftpd-0.15.0 lib/ftpd/null_logger.rb
ftpd-0.14.0 lib/ftpd/null_logger.rb
ftpd-0.13.0 lib/ftpd/null_logger.rb
ftpd-0.12.0 lib/ftpd/null_logger.rb
ftpd-0.11.0 lib/ftpd/null_logger.rb
ftpd-0.10.0 lib/ftpd/null_logger.rb
ftpd-0.9.0 lib/ftpd/null_logger.rb
ftpd-0.7.1 lib/ftpd/null_logger.rb
ftpd-0.8.0 lib/ftpd/null_logger.rb
ftpd-0.7.0 lib/ftpd/null_logger.rb
ftpd-0.6.0 lib/ftpd/null_logger.rb
ftpd-0.5.0 lib/ftpd/null_logger.rb