Rate this page:

LoggerOptions

Logger options.

Props

callbackLogLevel
Optional
Copy URL
callbackLogLevel: 

LogLevel

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

enableConsoleLogger
Optional
Copy URL
enableConsoleLogger: 

boolean

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

logLevel
Optional
Copy URL
logLevel: 

LogLevel

Log level. The default value is Info.

onLogCallback
Optional
Copy URL
onLogCallback: 

null | LogCallbackFunction

Callback function to receive the log messages.

prefix
Optional
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
Optional
Copy URL
timeFormat: 

TimeFormat

Timestamp format. The default value is ISO.

withTime
Optional
Copy URL
withTime: 

boolean

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

Rate this page: