Skip to navigation

LoggerOptions (interface)

Web SDK v5 API reference
View as Markdown

Logger

Logger options.

Properties

callbackLogLevel

callbackLogLevel?: LogLevel

Log level for the callback function. The default value is Info.

Optional.

enableConsoleLogger

enableConsoleLogger?: boolean

Whether logs should be printed to the browser console. The default value is true.

Optional.

logLevel

logLevel?: LogLevel

Log level. The default value is Info.

Optional.

onLogCallback

onLogCallback?: null | LogCallbackFunction

Callback function to receive the log messages.

Optional.

prefix

prefix?: null | string

Log message prefix. Helps to distinguish Web SDK logs from other logs in the console. The default value is ‘WEBSDK’.

Optional.

timeFormat

timeFormat?: TimeFormat

Timestamp format. The default value is ISO.

Optional.

withTime

withTime?: boolean

Whether a timestamp is included to a log message. The default value is true.

Optional.