Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_nodup_log.h File Reference

Generic No Dup Log system. More...

#include "n_common.h"
#include "n_log.h"
#include "n_str.h"
#include "n_list.h"
#include "n_hash.h"
+ Include dependency graph for n_nodup_log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define n_nodup_log(__LEVEL__, ...)
 nodup log macro helper
 
#define n_nodup_log_indexed(__LEVEL__, __PREF__, ...)
 nodup log indexed macro helper
 

Functions

void _n_nodup_log (int LEVEL, const char *file, const char *func, int line, const char *format,...)
 log a message only once per unique location
 
void _n_nodup_log_indexed (int LEVEL, const char *prefix, const char *file, const char *func, int line, const char *format,...)
 log a message only once per unique prefix and location
 
int close_nodup_log ()
 close the nodup log session
 
int dump_nodup_log (char *file)
 dump the nodup log hash table to a file in human-readable form
 
int empty_nodup_table ()
 empty the nodup table
 
int init_nodup_log (size_t max)
 init the nodup log internal hash table
 

Detailed Description

Generic No Dup Log system.

Author
Castagnier Mickael
Date
2013-04-15

Definition in file n_nodup_log.h.