Sha256: 079ea16a1f126dde1ed23081d892517adf3e50e142e05b62bbdf9efc8f23e87b

Contents?: true

Size: 379 Bytes

Versions: 36

Compression:

Stored size: 379 Bytes

Contents

module ActiveFedora
  class NullLogger < Logger
    def initialize(*); end

    # allows all the usual logger method calls (warn, info, error, etc.)
    def add(*); end

    # In the NullLogger there are no levels, so none of these should be true.
    [:debug?, :info?, :warn?, :error?, :fatal?].each do |method_name|
      define_method(method_name) { false }
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
active-fedora-13.3.0 lib/active_fedora/null_logger.rb
active-fedora-12.2.4 lib/active_fedora/null_logger.rb
active-fedora-13.2.7 lib/active_fedora/null_logger.rb
active-fedora-13.2.5 lib/active_fedora/null_logger.rb
active-fedora-13.2.4 lib/active_fedora/null_logger.rb
active-fedora-12.2.3 lib/active_fedora/null_logger.rb
active-fedora-13.2.3 lib/active_fedora/null_logger.rb
active-fedora-13.2.2 lib/active_fedora/null_logger.rb
active-fedora-13.2.0 lib/active_fedora/null_logger.rb
active-fedora-13.1.3 lib/active_fedora/null_logger.rb
active-fedora-11.5.6 lib/active_fedora/null_logger.rb
active-fedora-12.2.2 lib/active_fedora/null_logger.rb
active-fedora-11.2.1 lib/active_fedora/null_logger.rb
active-fedora-12.2.1 lib/active_fedora/null_logger.rb
active-fedora-12.0.3 lib/active_fedora/null_logger.rb
active-fedora-11.5.5 lib/active_fedora/null_logger.rb
active-fedora-13.1.2 lib/active_fedora/null_logger.rb
active-fedora-13.1.1 lib/active_fedora/null_logger.rb
active-fedora-13.1.0 lib/active_fedora/null_logger.rb
active-fedora-13.0.0 lib/active_fedora/null_logger.rb