Rate this page:

LoggerOptions

Logger options.

Props

callbackLogLevel

Copy URL
callbackLogLevel: 

LogLevel

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

enableConsoleLogger

Copy URL
enableConsoleLogger: 

boolean

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

logLevel

Copy URL
logLevel: 

LogLevel

Log level. The default value is Info.

onLogCallback

Copy URL
onLogCallback: 

null | LogCallbackFunction

Callback function to receive the log messages.

prefix

Copy URL
prefix: 

null | string

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

timeFormat

Copy URL
timeFormat: 

TimeFormat

Timestamp format. The default value is ISO.

withTime

Copy URL
withTime: 

boolean

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