Logging service client API.

interface LoggingService {
    log(
        prefix: Prefix,
        level: Level,
        message: string,
        metadata?: Record<string, any>,
    ): Promise<"Done">;
}

Methods

Methods

  • Writes the given message of the given level for the component

    Parameters

    • prefix: Prefix

      the Prefix of the component

    • level: Level

      the log Level. Example - INFO, TRACE etc

    • message: string

      the message to be logged

    • Optionalmetadata: Record<string, any>

      optional key-value pairs to be logged along with message

    Returns Promise<"Done">

    Done as Promise