librfn
An ad-hoc utility library
Data Structures | Functions
mlog.c File Reference
#include "librfn/mlog.h"
#include <stdint.h>
#include "librfn/string.h"
#include "librfn/util.h"

Go to the source code of this file.

Data Structures

struct  mlog_line
 
struct  mlog
 

Functions

void vmlog (const char *fmt, va_list ap)
 Log a message using a variable argument list. More...
 
void mlog (const char *fmt,...)
 Log a message. More...
 
void vmlog_nice (const char *fmt, va_list ap)
 Log a message using a variable argument list, if there is space to do so. More...
 
void mlog_nice (const char *fmt,...)
 Log a message, if there is space to do so. More...
 
void mlog_clear (void)
 Clear all data from the log. More...
 
void mlog_dump (FILE *f)
 Format the log and write it to the supplied file pointer. More...
 
char * mlog_get_line (int n)
 Format the Nth line of the log. More...