acc_integration_log.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include "acc_definitions_common.h"
#include "acc_integration.h"
#include "acc_integration_log.h"

Go to the source code of this file.

Macros

#define LOG_BUFFER_MAX_SIZE   150
 
#define LOG_FORMAT   "%02u:%02u:%02u.%03u (%c) (%s) %s\n"
 

Functions

void acc_integration_log (acc_log_level_t level, const char *module, const char *format,...)
 Log function. More...
 

Macro Definition Documentation

◆ LOG_BUFFER_MAX_SIZE

#define LOG_BUFFER_MAX_SIZE   150

Definition at line 16 of file acc_integration_log.c.

◆ LOG_FORMAT

#define LOG_FORMAT   "%02u:%02u:%02u.%03u (%c) (%s) %s\n"

Definition at line 18 of file acc_integration_log.c.

Function Documentation

◆ acc_integration_log()

void acc_integration_log ( acc_log_level_t  level,
const char *  module,
const char *  format,
  ... 
)

Log function.

This log function can be used as a complement to for example printf. It adds useful information to the log such as time and log level

Parameters
[in]levelThe severity level for the log
[in]moduleThe name of the SW module from where the log is called
[in]formatThe information to be logged, same format as for printf

Definition at line 21 of file acc_integration_log.c.