VCV Rack API  v1
rack::logger Namespace Reference

Logs messages to a file or the console with decoration. More...

Enumerations

enum  Level { DEBUG_LEVEL, INFO_LEVEL, WARN_LEVEL, FATAL_LEVEL }
 

Functions

void init ()
 
void destroy ()
 
void log (Level level, const char *filename, int line, const char *format,...)
 Do not use this function directly. More...
 

Detailed Description

Logs messages to a file or the console with decoration.

Enumeration Type Documentation

◆ Level

Enumerator
DEBUG_LEVEL 
INFO_LEVEL 
WARN_LEVEL 
FATAL_LEVEL 

Function Documentation

◆ init()

void rack::logger::init ( )

◆ destroy()

void rack::logger::destroy ( )

◆ log()

void rack::logger::log ( Level  level,
const char *  filename,
int  line,
const char *  format,
  ... 
)

Do not use this function directly.

Use the macros above. Thread-safe, meaning messages cannot overlap each other in the log.