this post was submitted on 29 Aug 2023
4 points (100.0% liked)

C & C++

885 readers
1 users here now

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/4072147

Is there a library for C, providing thread safe (high performance), and structured logging? An example for rust is the Tracing crate for rust (from Tokio). It should support several outputs as well.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] JustCopyingOthers@lemmy.ml 1 points 1 year ago (1 children)

We use boost log at work, it seems to meet all the criteria you ask for. It is a bit heavy on the compiler though and logging gets used everywhere so expect your build times to go up.

Sorry, just reread your post, boost is c++ and you want c