Aruna
log.h File Reference
#include "stdarg.h"
#include "stddef.h"
#include "stdint.h"
#include "arunaTypes.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  aruna::log::channel_t
 

Namespaces

 aruna
 
 aruna::log
 

Typedefs

typedef int(* aruna::log::vprintf_like_t) (const char *, va_list)
 

Enumerations

enum  aruna::log::level_t : int {
  aruna::log::level_t::NONE = -1, aruna::log::level_t::VERBOSE = 4, aruna::log::level_t::DEBUG = 3, aruna::log::level_t::INFO = 2,
  aruna::log::level_t::WARNING = 1, aruna::log::level_t::ERROR = 0
}
 

Functions

int aruna::log::set_level (const char *channel_name, level_t new_level)
 Set level of log channel. More...
 
vprintf_like_t aruna::log::set_print_function (vprintf_like_t func)
 Set a new print function to log to a diffrent location. More...
 
level_t aruna::log::set_max_level (level_t level)
 set maximum print level for all channels More...
 
void aruna::log::level_t_to_char (level_t level, char *buffer)
 convert level_t object to char More...
 

Variables

static const level_t aruna::log::default_level = level_t::INFO