Interface MethodLogger.Entry

Enclosing interface:
MethodLogger

public static interface MethodLogger.Entry
A method logger entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Appends this logger entry along with any child-entries to the given StringBuilder.
     
    long
    Returns the duration of the method call this entry represents in nanoseconds, this value is 0 or undefined until the exit time has been set.
     
     
    toString(int indentation)
    Returns a string representation of this log entry.
  • Method Details

    • childEntries

      List<MethodLogger.Entry> childEntries()
      Returns:
      the child log entries
    • method

      String method()
      Returns:
      the name of the method logged by this entry
    • enterMessage

      String enterMessage()
      Returns:
      the entry message
    • duration

      long duration()
      Returns the duration of the method call this entry represents in nanoseconds, this value is 0 or undefined until the exit time has been set.
      Returns:
      the duration of the method call this entry represents
    • appendTo

      void appendTo(StringBuilder builder)
      Appends this logger entry along with any child-entries to the given StringBuilder.
      Parameters:
      builder - the StringBuilder to append to.
    • toString

      String toString(int indentation)
      Returns a string representation of this log entry.
      Parameters:
      indentation - the number of tab indents to prefix the string with
      Returns:
      a string representation of this log entry