lib/docrb/spec/fixtures/logrb.rb
# Returns a new logger instance using the same output of its parent's, with
# an optional set of fields to be merged against the parent's fields.
#
# fields - A Hash containing metadata to be included in all output entries
#          emitted from the returned instance.
Returns a new logger instance using the same output of its parent's, with
an optional set of fields to be merged against the parent's fields.

A Hash containing metadata to be included in all output entries
emitted from the returned instance.
Returns a new logger instance using the same output of its parent ' s with an optional set of fields to be merged against the parent ' s fields . A Hash containing metadata to be included in all output entries emitted from the returned instance .
def with_fields(**fields)
    inst = Logrb.new(@output, format: @format, level: @level)
    inst.fields = @fields.merge(fields)
    inst
  end
def with_fields ( ** fields ) inst = Logrb . new ( @output , format : @format , level : @level ) inst . fields = @fields . merge ( fields ) inst end
Returns a new logger instance using the same output of its parent's, with
an optional set of fields to be merged against the parent's fields.
Returns a new logger instance using the same output of its parent ' s with an optional set of fields to be merged against the parent ' s fields .
fields