7#ifndef __NO_DUP_LOG_HEADER_GUARD__
8#define __NO_DUP_LOG_HEADER_GUARD__
26int init_nodup_log(
size_t max);
33#define n_nodup_log(__LEVEL__, ...) \
35 _n_nodup_log(__LEVEL__, __FILE__, __func__, __LINE__, __VA_ARGS__); \
39#define n_nodup_log_indexed(__LEVEL__, __PREF__, ...) \
41 _n_nodup_log_indexed(__LEVEL__, __PREF__, __FILE__, __func__, __LINE__, __VA_ARGS__); \
45void _n_nodup_log(
int LEVEL,
const char* file,
const char* func,
int line,
const char* format, ...);
47void _n_nodup_log_indexed(
int LEVEL,
const char* prefix,
const char* file,
const char* func,
int line,
const char* format, ...);
int dump_nodup_log(char *file)
Dump the duplicate error log hash table in a file The table is first written to a temporary file whic...
int close_nodup_log()
Empty nodup logtable and close the no duplicate logging session.
void _n_nodup_log(int LEVEL, const char *file, const char *func, int line, const char *format,...)
Logging function.
int empty_nodup_table()
Empty the nodup internal table.
void _n_nodup_log_indexed(int LEVEL, const char *prefix, const char *file, const char *func, int line, const char *format,...)
Logging function.
Common headers and low-level functions & define.
Hash functions and table.
List structures and definitions.
N_STR and string function declaration.