Learn how to use cloud logging to remote debugging with bytebeam-esp-idf-sdk
logs
by default inside the SDK and you have the option to tune it as per your choice using bytebeam_log_stream_set
function. Once you have created a stream you can use the logging macros to publish the log to the stream.
Note: Make sure to add the tag, level and message fields i.e. (data type is String) while creating the stream.
BYTEBEAM_LOG_LEVEL_NONE
to BYTEBEAM_LOG_LEVEL_VERBOSE
and the level of logging you want to achieve in your code can be set by using bytebeam_log_level_set
function anywhere in your code. When you call any logging macro the SDK will check the configured log level internally and will only log it if the log level is equal or less than the configured log level.
bytebeam_disable_cloud_logging
function anywhere in the code. By default, cloud logging is enabled inside the SDK.