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