Concord - C Discord API library
A Discord API wrapper library written in C
logconf Struct Reference

A stackful and modularized wrapper over the popular 'log.c' facilities. More...

#include <logconf.h>

Collaboration diagram for logconf:
[legend]

Data Fields

char id [64+1]
 
unsigned pid
 
_Bool is_branch
 
_Bool is_disabled
 
struct logconf_szbuf file
 
int * counter
 
log_LoggerL
 
struct {
   char *   fname
 
   FILE *   f
 
} * logger
 
struct {
   char *   fname
 
   FILE *   f
 
} * http
 
struct {
   size_t   size
 
   char **   ids
 
disable_modules
 

Detailed Description

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.

Field Documentation

◆ id

char logconf::id[64+1]

logging module id

◆ pid

unsigned logconf::pid

the id of the process where this module was created

◆ is_branch

_Bool logconf::is_branch

if true then logconf_cleanup() won't cleanup shared resources

◆ is_disabled

_Bool logconf::is_disabled

if true then logging will be ignored for this module

◆ file

struct logconf_szbuf logconf::file

config file contents

◆ counter

int* logconf::counter

http logging counter

◆ L

log_Logger* logconf::L

log.c main structure (shared with branches)

◆ fname

char* logconf::fname

name of logging output file

◆ f

FILE* logconf::f

pointer to logging output file

◆ 

struct { ... } * logconf::logger

◆ 

struct { ... } * logconf::http

◆ size

size_t logconf::size

◆ ids

char** logconf::ids

◆ 

struct { ... } logconf::disable_modules

list of 'id' that should be ignored


The documentation for this struct was generated from the following file: