lib/ougai/logging.rb
def child(fields = {})
      ch = ChildLogger.new(self, fields)

      if !block_given?
        ch
      else
        yield ch
      end
    end
# Creates a child logger and returns it.
# @param fields [Hash] The fields appending to all logs
# @return [ChildLogger] A created child logger
Creates a child logger and returns it.
Creates a child logger and returns it .
def child(fields = {})
      ch = ChildLogger.new(self, fields)
      if !block_given?
        ch
      else
        yield ch
      end
    end
def child ( fields = { } ) ch = ChildLogger . new ( self , fields ) if ! block_given? ch else yield ch end end
Creates a child logger and returns it.
Creates a child logger and returns it .
A created child logger
A created child logger
ChildLogger
fields
The fields appending to all logs
The fields appending to all logs