Method: Ougai::Logging#debug

Defined in:
lib/ougai/logging.rb

#debug(message = nil, ex = nil, data = nil, &block) ⇒ Boolean

Log any one or more of a message, an exception and structured data as DEBUG. If the block is given for delay evaluation, it returns them as an array or the one of them as a value.

Parameters:

  • message (String) (defaults to: nil)

    The message to log. Use default_message if not specified.

  • ex (Exception) (defaults to: nil)

    The exception or the error

  • data (Object) (defaults to: nil)

    Any structured data

Yield Returns:

  • (String|Exception|Object|Array)

    Any one or more of former parameters

Returns:

  • (Boolean)

    true



41
42
43
# File 'lib/ougai/logging.rb', line 41

def debug(message = nil, ex = nil, data = nil, &block)
  _log(DEBUG, message, ex, data, &block)
end