Uniot Core
0.8.1
Loading...
Searching...
No Matches
Logger.h File Reference
#include <Arduino.h>
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __FUNC_NAME__   __FUNCTION__
 Cross-platform function name macro.
 
#define UNIOT_LOG_LEVEL_ERROR   0
 Log level definitions.
 
#define UNIOT_LOG_LEVEL_WARN   1
 
#define UNIOT_LOG_LEVEL_INFO   2
 
#define UNIOT_LOG_LEVEL_DEBUG   3
 
#define UNIOT_LOG_LEVEL_TRACE   4
 
#define UNIOT_LOG_STREAM   Serial
 Default log level.
 
#define UNIOT_LOG_BAUD_RATE   115200
 Default baud rate for serial logging.
 
#define UNIOT_LOG_BUF_SIZE   256
 Maximum size of the logging buffer.
 
#define UNIOT_LOG_SET_READY()
 Initialize the logging system.
 
#define UNIOT_LOG_PRINT(...)
 Print to the logging stream.
 
#define UNIOT_LOG(log_type, log_fmt, log_arg...)
 Core logging macro.
 
#define UNIOT_LOG_IF(log_type, log_cond, log_fmt, log_arg...)
 Conditional logging macro.
 
#define UNIOT_LOG_ERROR(...)
 Log an ERROR level message Used for critical errors that may prevent normal operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_ERROR.
 
#define UNIOT_LOG_ERROR_IF(log_cond, log...)
 Conditionally log an ERROR level message Used for critical errors that may prevent normal operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_ERROR.
 
#define UNIOT_LOG_WARN(...)
 Log an WARN level message Used for warnings about potentially problematic situations. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_WARN.
 
#define UNIOT_LOG_WARN_IF(log_cond, log...)
 Conditionally log an WARN level message Used for warnings about potentially problematic situations. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_WARN.
 
#define UNIOT_LOG_INFO(...)
 Log an INFO level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_INFO.
 
#define UNIOT_LOG_INFO_IF(log_cond, log...)
 Conditionally log an INFO level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_INFO.
 
#define UNIOT_LOG_DEBUG(...)
 Log an DEBUG level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_DEBUG.
 
#define UNIOT_LOG_DEBUG_IF(log_cond, log...)
 Conditionally log an DEBUG level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_DEBUG.
 
#define UNIOT_LOG_TRACE(...)
 Log an TRACE level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_TRACE.
 
#define UNIOT_LOG_TRACE_IF(log_cond, log...)
 Conditionally log an TRACE level message Used for general information about system operation. Only compiled if UNIOT_LOG_LEVEL is at least UNIOT_LOG_LEVEL_TRACE.