MIP_SDK  v3.0.0-187-g93c7302
MicroStrain Communications Library for embedded systems
Functions | Variables
logging.c File Reference
#include "logging.h"
#include <stddef.h>

Functions

void microstrain_logging_init (const microstrain_log_callback callback, const microstrain_log_level level, void *user)
 Initializes the logger with a callback and user data. Call MICROSTRAIN_LOG_INIT instead of using this function directly. This function does not have to be called unless the user wants logging. More...
 
microstrain_log_callback microstrain_logging_callback (void)
 Gets the currently active logging callback. More...
 
microstrain_log_level microstrain_logging_level (void)
 Gets the currently active logging level. More...
 
void * microstrain_logging_user_data (void)
 Gets the currently active logging user data. More...
 
void microstrain_logging_log_v (const microstrain_log_level level, const char *fmt, va_list args)
 Internal log function called by variadic logging macros. Call MICROSTRAIN_LOG_*_V macros instead of using this function directly. More...
 
void microstrain_logging_log (const microstrain_log_level level, const char *fmt,...)
 Internal log function called by logging macros. Call MICROSTRAIN_LOG_* macros instead of using this function directly. More...
 
const char * microstrain_logging_level_name (const microstrain_log_level level)
 Returns a string representing the given log level. More...
 

Variables

microstrain_log_callback microstrain_log_callback_ = NULL
 Global logging callback. Do not access directly. More...
 
microstrain_log_level microstrain_log_level_ = MICROSTRAIN_LOG_LEVEL_OFF
 Global logging level. Do not access directly. More...
 
void * microstrain_log_user_data_ = NULL
 Global logging user data. Do not access directly. More...
 

Variable Documentation

◆ microstrain_log_callback_

microstrain_log_callback microstrain_log_callback_ = NULL

Global logging callback. Do not access directly.

◆ microstrain_log_level_

Global logging level. Do not access directly.

◆ microstrain_log_user_data_

void* microstrain_log_user_data_ = NULL

Global logging user data. Do not access directly.