Options
All
  • Public
  • Public/Protected
  • All
Menu

A simple logger you can use in your app. It provides four functions, one for each of the available LogSeverity levels. Check out ConsoleServiceClient.SimpleLogger if you want to see some usage examples.

Hierarchy

  • SimpleLogger

Index

Properties

Properties

debug

debug: (msg: string, additionalData?: unknown) => void

Log a debug message and optionally add additional data.

param

Message to be logged

param

Additional data you want to attach to the log entry

Type declaration

    • (msg: string, additionalData?: unknown): void
    • Parameters

      • msg: string
      • Optional additionalData: unknown

      Returns void

error

error: (msg: string, additionalData?: unknown) => void

Log an error message and optionally add additional data.

param

Message to be logged

param

Additional data you want to attach to the log entry

Type declaration

    • (msg: string, additionalData?: unknown): void
    • Parameters

      • msg: string
      • Optional additionalData: unknown

      Returns void

info

info: (msg: string, additionalData?: unknown) => void

Log an info message and optionally add additional data.

param

Message to be logged

param

Additional data you want to attach to the log entry

Type declaration

    • (msg: string, additionalData?: unknown): void
    • Parameters

      • msg: string
      • Optional additionalData: unknown

      Returns void

warn

warn: (msg: string, additionalData?: unknown) => void

Log a warning message and optionally add additional data.

param

Message to be logged

param

Additional data you want to attach to the log entry

Type declaration

    • (msg: string, additionalData?: unknown): void
    • Parameters

      • msg: string
      • Optional additionalData: unknown

      Returns void

Legend

  • Property

Generated using TypeDoc