lib/docrb/spec/fixtures/logrb.rb
# Public: Emits an error to the log output. When error is provided, this
# method attempts to gather a stacktrace to include in the emitted entry.
Emits an error to the log output. When error is provided, this
method attempts to gather a stacktrace to include in the emitted entry.
Emits an error to the log output . When error is provided this method attempts to gather a stacktrace to include in the emitted entry .
def error(msg, error = nil, **fields)
    return if LEVELS[@level] > LEVELS[:error]
    wrap(:error, msg, error, fields)
    nil
  end
def error ( msg , error = nil , ** fields ) return if LEVELS [ @level ] > LEVELS [ :error ] wrap ( :error , msg , error , fields ) nil end
Public: Emits an error to the log output.
Public : Emits an error to the log output .
msg
error
fields