Skip to main content

Interface: SimpleLogger#

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.

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:#

NameType
msgstring
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:#

NameType
msgstring
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:#

NameType
msgstring
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:#

NameType
msgstring
additionalData?unknown

Returns: void