4
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml

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

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.

[-] JustCopyingOthers@lemmy.ml 1 points 1 year ago

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

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

C & C++

1 readers
3 users here now

founded 5 years ago
MODERATORS