Microchip® Advanced Software Framework

log.h File Reference

Headers containing interfaces, types and macros for logging module.

Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Macros

#define DEBUG   (5)
 
#define ERROR   (4)
 
#define INFO   (2)
 
#define LOG_LEVEL   NONE
 
#define LOGLINE_DEBUG(...)
 
#define LOGLINE_ERROR(...)
 
#define LOGLINE_INFO(...)
 
#define LOGLINE_WARN(...)
 
#define LOGMSG_DEBUG(...)
 
#define LOGMSG_ERROR(...)
 
#define LOGMSG_INFO(...)
 
#define LOGMSG_WARN(...)
 
#define LOGSTR_BUFFER_SIZE   (256)
 
#define NONE   (1)
 
#define PRINTF_FORMAT   __attribute__ ((format (printf, 3, 4)))
 
#define WARN   (3)
 

Functions

PRINTF_FORMAT void log_output (uint8_t level, bool newline, const char *format,...)
 

#define DEBUG   (5)

Referenced by log_output().

#define ERROR   (4)
#define INFO   (2)

Referenced by log_output().

#define LOG_LEVEL   NONE

Referenced by log_output().

#define LOGLINE_ERROR (   ...)

Referenced by LongTimerInit(), and MSG_Init().

#define LOGLINE_INFO (   ...)
#define LOGLINE_WARN (   ...)
#define LOGMSG_DEBUG (   ...)

Referenced by messageReceiveProcess().

#define LOGMSG_ERROR (   ...)
#define LOGMSG_INFO (   ...)
#define LOGMSG_WARN (   ...)
#define LOGSTR_BUFFER_SIZE   (256)

Referenced by log_output().

#define NONE   (1)
#define PRINTF_FORMAT   __attribute__ ((format (printf, 3, 4)))
#define WARN   (3)

Referenced by log_output().