Sha256: eeacf3de301c3078848255ef04e48f38e632d836fbc976e4d8f294e924a2c7bb
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active-fedora-11.1.4 | lib/active_fedora/null_logger.rb |
active-fedora-11.1.3 | lib/active_fedora/null_logger.rb |
active-fedora-11.1.2 | lib/active_fedora/null_logger.rb |