libmetal
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions
log.h File Reference
#include <metal/system/@PROJECT_SYSTEM@/log.h>

Go to the source code of this file.

Macros

#define metal_log(level, ...)
 

Typedefs

typedef void(* metal_log_handler) (enum metal_log_level level, const char *format,...)
 

Enumerations

enum  metal_log_level {
  METAL_LOG_EMERGENCY , METAL_LOG_ALERT , METAL_LOG_CRITICAL , METAL_LOG_ERROR ,
  METAL_LOG_WARNING , METAL_LOG_NOTICE , METAL_LOG_INFO , METAL_LOG_DEBUG
}
 

Functions

void metal_set_log_handler (metal_log_handler handler)
 Set libmetal log handler. More...
 
metal_log_handler metal_get_log_handler (void)
 Get the current libmetal log handler. More...
 
void metal_set_log_level (enum metal_log_level level)
 Set the level for libmetal logging. More...
 
enum metal_log_level metal_get_log_level (void)
 Get the current level for libmetal logging. More...
 
void metal_default_log_handler (enum metal_log_level level, const char *format,...)
 Default libmetal log handler. This handler prints libmetal log mesages to stderr. More...