• "logger"

Index

Interfaces

Type aliases

Functions

Type aliases

LogSeverity

LogSeverity: "DEBUG" | "INFO" | "NOTICE" | "WARNING" | "ERROR" | "CRITICAL" | "ALERT" | "EMERGENCY"

LogSeverity indicates the detailed severity of the log entry. See LogSeverity.

Functions

debug

  • debug(...args: any[]): void
  • Writes a DEBUG severity log. If the last argument provided is a plain object, it is added to the jsonPayload in the Cloud Logging entry.

    Parameters

    • Rest ...args: any[]

      Arguments, concatenated into the log message with space separators.

    Returns void

error

  • error(...args: any[]): void
  • Writes an ERROR severity log. If the last argument provided is a plain object, it is added to the jsonPayload in the Cloud Logging entry.

    Parameters

    • Rest ...args: any[]

      Arguments, concatenated into the log message with space separators.

    Returns void

info

  • info(...args: any[]): void
  • Writes an INFO severity log. If the last argument provided is a plain object, it is added to the jsonPayload in the Cloud Logging entry.

    Parameters

    • Rest ...args: any[]

      Arguments, concatenated into the log message with space separators.

    Returns void

log

  • log(...args: any[]): void
  • Writes an INFO severity log. If the last argument provided is a plain object, it is added to the jsonPayload in the Cloud Logging entry.

    Parameters

    • Rest ...args: any[]

      Arguments, concatenated into the log message with space separators.

    Returns void

removeCircular

  • removeCircular(obj: any, refs?: any[]): any
  • Parameters

    • obj: any
    • Default value refs: any[] = []

    Returns any

warn

  • warn(...args: any[]): void
  • Writes a WARNING severity log. If the last argument provided is a plain object, it is added to the jsonPayload in the Cloud Logging entry.

    Parameters

    • Rest ...args: any[]

      Arguments, concatenated into the log message with space separators.

    Returns void

write

  • Writes a LogEntry to stdout/stderr (depending on severity).

    Parameters

    • entry: LogEntry

      The LogEntry including severity, message, and any additional structured metadata.

    Returns void