Concord - C Discord API library
A Discord API wrapper library written in C
|
A stackful and modularized wrapper over the popular 'log.c' facilities. More...
#include <logconf.h>
Data Fields | |
char | id [64+1] |
unsigned | pid |
_Bool | is_branch |
_Bool | is_disabled |
struct logconf_szbuf | file |
int * | counter |
log_Logger * | L |
struct { | |
char * fname | |
FILE * f | |
} * | logger |
struct { | |
char * fname | |
FILE * f | |
} * | http |
struct { | |
size_t size | |
char ** ids | |
} | disable_modules |
A stackful and modularized wrapper over the popular 'log.c' facilities.
Provides a way to split logging into individual modules, that can be configured separately from one another, or have their resources shared via branching.
char logconf::id[64+1] |
logging module id
unsigned logconf::pid |
the id of the process where this module was created
_Bool logconf::is_branch |
if true then logconf_cleanup() won't cleanup shared resources
_Bool logconf::is_disabled |
if true then logging will be ignored for this module
struct logconf_szbuf logconf::file |
config file contents
int* logconf::counter |
http logging counter
log_Logger* logconf::L |
log.c main structure (shared with branches)
char* logconf::fname |
name of logging output file
FILE* logconf::f |
pointer to logging output file
struct { ... } * logconf::logger |
struct { ... } * logconf::http |
size_t logconf::size |
char** logconf::ids |
struct { ... } logconf::disable_modules |
list of 'id' that should be ignored