{"repo":"MuggleWei/haclog","free":true,"listed":false,"github":"https://github.com/MuggleWei/haclog","clone":"git clone https://github.com/MuggleWei/haclog.git","description":"Haclog(Happy Aync C log) is an extremely fast plain C logging library","language":"C","stars":81,"topics":["c","high-performance","logging","low-latency"],"license":"MIT","category":"analytics","readme_excerpt":"haclog readme EN readme 中文 haclog( H appy A sync C Log) is a plain C asynchronous log library. The main goal of this library is to make the writing time of log front-end(log producer thread) as small as possible. Build haclog supports multiple build tools cmake If you want to compile and run unit tests and benchmark, run run test and benchmark.sh (in Windows, run test and benchmark.bat ) meson Usage samples hello Use haclog context add handler , you can add different log handler into context, built-in support handler is as follows haclog console handler t : output to console(stdout/stderr) haclog file handler t : output to file haclog file rotate handler t : output to file and rotate according to file size haclog file time rot handler t : output to file and rotate according to time After add handler , call haclog backend run to run log backend In each thread, before write log, call haclog thread context init to initialize haclog thread context When thread exit, call haclog thread context init to cleanup haclog thread context NOTE : in haclog , the format string in each log must be a string literal , When using C++, the compiler will help the user to automatically detect it; when using C, the user needs to gurantee this by self file handler rotate file handler time rotate file handler Customize log format By default, detailed log information will be printed in the following pattern: ${level} ${UTC+0 datetime} ${file & line number} ${function} ${thread id} User can Customize lo","default_branch":null,"files":null,"tree":[],"storefront":"/r/MuggleWei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MuggleWei/haclog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}