Logging in C with support for monoid logging
logging jsonl monoid c
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: log was getting lost after appending

+3 -1
+3 -1
src/clog.c
··· 131 131 /// Append a log entry to a CLog. Called via the clogm() macro. 132 132 void _clog_write_log(CLog *log, ClogLevel level, const char *file, unsigned int line, const char *func, const char *msg) { 133 133 ClogEntry e = make_entry(level, file, line, func, msg); 134 - da_append(*log, e); 134 + CLog arr = *log; 135 + da_append(arr, e); 136 + *log = arr; 135 137 }