Sha256: 5a64a4b8a1178a209c26357642a46fa4d228609ec30abcde394fdf6eea20227d
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
# Patch Logging::Logger so that :trace becomes an inherited flag module Logging class Logger # :nocov: # Override to pass trace flag from parent to child def initialize( name ) case name when String raise(ArgumentError, "logger must have a name") if name.empty? else raise(ArgumentError, "logger name must be a String") end repo = ::Logging::Repository.instance parent = repo.parent(name) _setup(name, :parent => parent, :trace => parent.trace) end # :nocov: end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bixby-common-0.4.6 | lib/bixby-common/util/log/logger.rb |
bixby-common-0.4.5 | lib/bixby-common/util/log/logger.rb |