Asynchronous thread-safe logging in C++

后端 未结 5 449
南方客
南方客 2021-02-04 04:04

I\'m looking for a way to do asynchronous and thread-safe logging in my C++ project, if possible to one file. I\'m currently using cerr and clog for th

5条回答
  •  野的像风
    2021-02-04 04:46

    I had the same issue and I believe I have found the perfect solution. I present to you, a single-header library called loguru: https://github.com/emilk/loguru

    It's simple to use, portable, configurable, macro-based and by default doesn't #include anything (for that sweet, sweet compilation times).

提交回复
热议问题