Method: RDF::Util::Logger#log_depth

Defined in:
lib/rdf/util/logger.rb

#log_depth(depth: 1, **options) { ... } ⇒ Object #log_depthInteger

Overloads:

  • #log_depth(depth: 1, **options) { ... } ⇒ Object

    Increase depth around a method invocation

    Parameters:

    • :depth (Integer)

      Additional recursion depth

    • options (Hash{Symbol})

      (@options || {})

    Options Hash (**options):

    Yields:

    • Yields with no arguments

    Yield Returns:

    • (Object)

      returns the result of yielding

    Returns:

    • (Object)
  • #log_depthInteger

    # Return the current log depth

    Returns:

    • (Integer)

Since:

  • 2.0.0



197
198
199
# File 'lib/rdf/util/logger.rb', line 197

def log_depth(depth: 1, **options, &block)
  self.logger(**options).log_depth(depth: depth, &block)
end