Ylva And Malin
Functions
ym_log.c File Reference
#include <ym_log.h>
#include <stdatomic.h>
Include dependency graph for ym_log.c:

Functions

void ym_log (FILE *file, const char *type, const char *color, const char *filepath, const char *func, const int line, const char *fmt,...)
 Actual function which is called by log macros. More...
 

Function Documentation

void ym_log ( FILE *  file,
const char *  type,
const char *  color,
const char *  filepath,
const char *  func,
const int  line,
const char *  fmt,
  ... 
)

Actual function which is called by log macros.

Note
Do not use this function! You are supposed to use the logger macros.
Todo:
Add timing functionality.
Todo:
Make proper buffered logger which does not require a lock. But rather logs to a specified location, and is later printed out by the debug thread.