Sha256: 4108957d07bcc4c20f4ba5ca4feff19703a0be9cd835bd8af5c123662882f7d8
Contents?: true
Size: 560 Bytes
Versions: 14
Compression:
Stored size: 560 Bytes
Contents
# Patch Logging::Logger so that :trace becomes an inherited flag require "logging" 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
14 entries across 14 versions & 1 rubygems