Documentation
    Preparing search index...

    Class Report

    A hierarchical background report/log.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Constructs a new report.

      Parameters

      • origin: string

        The ID of this report.

      • Optionalparent: Report

        The paren report for this report.

      Returns Report

      InvalidOperationError When the origin was already used by another report in this hierarchy.

    Properties

    origin: string

    The ID of this report.

    Accessors

    Methods

    • Prints the contents of the report.

      Parameters

      • logger: BareLogger

        A logger to use to print the report.

      • depth: number = 0

        How deep to indent this part of the report.

      Returns void

    • Put an entry into the report.

      Parameters

      • message: string

        The message to add.

      • Optionalcontext: Record<string, unknown>

        An arbitrary key-value object to store with the message.

      Returns void