log

abstract fun log(sidewalkLogLevel: SidewalkLogLevel, message: String)

Logs an event with the specified log type and message.

This function allows capturing and logging events for debugging, tracking, and monitoring purposes within the Sidewalk framework. It provides a way to record logs with different levels of importance, such as SidewalkLogLevel.ERROR, SidewalkLogLevel.INFO, and SidewalkLogLevel.DEBUG, which can be used to observe the internal behavior or performance of the system.

Parameters

sidewalkLogLevel

The log type indicating the severity or category of the message.

message

The message string to be logged.