Logging Overview
This document provides an overview of the MikroSDK.Log API, available to NECTO Studio users. The MikroSDK.Log system enables developers to efficiently output diagnostic and status messages from embedded applications, making it easier to debug, monitor, and troubleshoot. This is particularly important in resource-constrained environments where real-time feedback is crucial for understanding system behavior.
Benefits for NECTO Studio Users
- Efficient Debugging: The
MikroSDK.Log
API allows developers to log messages at different levels, making it easier to trace code execution and identify issues. - Flexible Output Options: Messages can be sent to UART, to
Application Output
window within NECTO, or the NECTO'sUART terminal
tool, providing flexibility in how logs are handled and viewed. - Structured Log Levels: The API supports multiple log levels (debug, info, warning, fatal), helping developers prioritize messages based on severity.
- Seamless Integration: When integrated into NECTO Studio, configuration and usage of the
MikroSDK.Log
API are streamlined, with automated setup for library linking and output options.
mikroSDK Logging API Files
The following files and configurations are required to use the MikroSDK.Log feature in your NECTO Studio projects:
log.h
: Provides macros and functions that allow developers to log messages at various levels (debug, info, warning, error) and output these messages via UART or other supported channels.
Key mikroSDK Logging Features
1. Log Levels
- Debug, Info, Warning, and Fatal: Log messages can be categorized by severity, allowing developers to easily filter logs based on the importance of the message.
2. UART Output
- UART-Based Logging: Logs can be easily directed to UART for real-time monitoring. Developers can use a serial terminal to view logs during development and testing.
3. Easy Integration in NECTO Studio
- Library Manager Support: The
MikroSDK.Log
feature is fully integrated into NECTO Studio, allowing users to seamlessly add it to their projects through the Library Manager.
How to Use the MikroSDK Logging in NECTO Studio
- Make sure to check out MikroSDK's Code Examples for practical implementations of logging in embedded systems!