Sha256: 6007c85d235c5781deb0ffa71deac161c6e1874747e0c9c73af5c8d10b1b78ff
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
module Ougai class ChildLogger include Logging def initialize(parent, fields) @parent = parent @with_fields = fields end def level @parent.level end def chain(severity, args, fields) @parent.chain(severity, args, merge_fields(@with_fields, fields)) end protected def append(severity, args) @parent.chain(severity, args, @with_fields) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ougai-1.2.0 | lib/ougai/child_logger.rb |