MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Functions | Variables
logging.c File Reference
#include "logging.h"
#include <stddef.h>

Functions

void microstrain_logging_init (microstrain_log_callback callback, 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 (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...
 

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.