technology logo
technology logo

15 best C++ Logging Libraries

share link

by Open Weaver kits ✔ dot icon Updated: Jan 25, 2023

Guide Kit Guide Kit  

Here is the list of best CPP logging libraries to help debug, understand the micro-level working of a program, track errors and status messages created during runtime, see the results of each independent process, and more. 


Managing errors and exceptions in your C++ code is also challenging when running on the server side. The ability to track, analyse, and manage real-time errors can significantly improve your workflow and build high-quality code. Logging libraries let you do that.


  • Multithreading/async writing to log files.
  • Support of multiple log levels and types.
  • Configuration and trace filtering from config file. 
  • Help of log rotation and time stamping.
  • Singleton Class and thread safety in a multithreading environment.
  • Good documentation and library support itself.

 

Check out our recommendation of the 15 best C++ Logging open-source libraries available for developers:


spdlogby gabime

C++ doticonstar image 17361 doticonVersion:v1.11.0doticon
License: Others (Non-SPDX)

Fast C++ logging library.

Support
    Quality
      Security
        License
          Reuse

            spdlogby gabime

            C++ doticon star image 17361 doticonVersion:v1.11.0doticon License: Others (Non-SPDX)

            Fast C++ logging library.
            Support
              Quality
                Security
                  License
                    Reuse

                      glogby google

                      C++ doticonstar image 6010 doticonVersion:v0.6.0doticon
                      License: Others (Non-SPDX)

                      C++ implementation of the Google logging module

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                glogby google

                                C++ doticon star image 6010 doticonVersion:v0.6.0doticon License: Others (Non-SPDX)

                                C++ implementation of the Google logging module
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          easyloggingppby amrayn

                                          C++ doticonstar image 3352 doticonVersion:v9.97.0doticon
                                          License: Others (Non-SPDX)

                                          Single header C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    easyloggingppby amrayn

                                                    C++ doticon star image 3352 doticonVersion:v9.97.0doticon License: Others (Non-SPDX)

                                                    Single header C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              NanoLogby PlatformLab

                                                              C++ doticonstar image 2090 doticonVersion:0.91doticon
                                                              License: Others (Non-SPDX)

                                                              Nanolog is an extremely performant nanosecond scale logging system for C++ that exposes a simple printf-like API.

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        NanoLogby PlatformLab

                                                                        C++ doticon star image 2090 doticonVersion:0.91doticon License: Others (Non-SPDX)

                                                                        Nanolog is an extremely performant nanosecond scale logging system for C++ that exposes a simple printf-like API.
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  palanteerby dfeneyrou

                                                                                  C++ doticonstar image 1943 doticonVersion:v0.6doticon
                                                                                  License: Others (Non-SPDX)

                                                                                  Visual Python and C++ nanosecond profiler, logger, tests enabler

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            palanteerby dfeneyrou

                                                                                            C++ doticon star image 1943 doticonVersion:v0.6doticon License: Others (Non-SPDX)

                                                                                            Visual Python and C++ nanosecond profiler, logger, tests enabler
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      plogby SergiusTheBest

                                                                                                      C++ doticonstar image 1708 doticonVersion:1.1.9doticon
                                                                                                      License: Permissive (MIT)

                                                                                                      Portable, simple and extensible C++ logging library

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                plogby SergiusTheBest

                                                                                                                C++ doticon star image 1708 doticonVersion:1.1.9doticon License: Permissive (MIT)

                                                                                                                Portable, simple and extensible C++ logging library
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          log4cplusby log4cplus

                                                                                                                          C++ doticonstar image 1420 doticonVersion:REL_2_1_0doticon
                                                                                                                          License: Others (Non-SPDX)

                                                                                                                          log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    log4cplusby log4cplus

                                                                                                                                    C++ doticon star image 1420 doticonVersion:REL_2_1_0doticon License: Others (Non-SPDX)

                                                                                                                                    log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              g3logby KjellKod

                                                                                                                                              C++ doticonstar image 811 doticonVersion:2.2doticon
                                                                                                                                              License: Permissive (Unlicense)

                                                                                                                                              G3log is an asynchronous, "crash safe", logger that is easy to use with default logging sinks or you can add your own. G3log is made with plain C++14 (C++11 support up to release 1.3.2) with no external libraries (except gtest used for unit tests). G3log is made to be cross-platform, currently running on OSX, Windows and several Linux distros. See Readme below for details of usage.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        g3logby KjellKod

                                                                                                                                                        C++ doticon star image 811 doticonVersion:2.2doticon License: Permissive (Unlicense)

                                                                                                                                                        G3log is an asynchronous, "crash safe", logger that is easy to use with default logging sinks or you can add your own. G3log is made with plain C++14 (C++11 support up to release 1.3.2) with no external libraries (except gtest used for unit tests). G3log is made to be cross-platform, currently running on OSX, Windows and several Linux distros. See Readme below for details of usage.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  quillby odygrd

                                                                                                                                                                  C++ doticonstar image 785 doticonVersion:v2.7.0doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Asynchronous Low Latency C++ Logging Library

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            quillby odygrd

                                                                                                                                                                            C++ doticon star image 785 doticonVersion:v2.7.0doticon License: Permissive (MIT)

                                                                                                                                                                            Asynchronous Low Latency C++ Logging Library
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      recklessby mattiasflodin

                                                                                                                                                                                      C++ doticonstar image 366 doticonVersion:v3.0.3doticon
                                                                                                                                                                                      License: Others (Non-SPDX)

                                                                                                                                                                                      Reckless logging. Low-latency, high-throughput, asynchronous logging library for C++.

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                recklessby mattiasflodin

                                                                                                                                                                                                C++ doticon star image 366 doticonVersion:v3.0.3doticon License: Others (Non-SPDX)

                                                                                                                                                                                                Reckless logging. Low-latency, high-throughput, asynchronous logging library for C++.
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          log4zby zsummer

                                                                                                                                                                                                          C++ doticonstar image 319 doticonVersion:v3.4.0doticon
                                                                                                                                                                                                          License: Others (Non-SPDX)

                                                                                                                                                                                                          Log4z is an open source C++ lightweight & cross platform log library

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    log4zby zsummer

                                                                                                                                                                                                                    C++ doticon star image 319 doticonVersion:v3.4.0doticon License: Others (Non-SPDX)

                                                                                                                                                                                                                    Log4z is an open source C++ lightweight & cross platform log library
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              binlogby morganstanley

                                                                                                                                                                                                                              C++ doticonstar image 452 doticonVersion:2021-04-16doticon
                                                                                                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                                                                                                              A high performance C++ log library, producing structured binary logs

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        binlogby morganstanley

                                                                                                                                                                                                                                        C++ doticon star image 452 doticonVersion:2021-04-16doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                        A high performance C++ log library, producing structured binary logs
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  timemoryby NERSC

                                                                                                                                                                                                                                                  C++ doticonstar image 308 doticonVersion:v3.2.3doticon
                                                                                                                                                                                                                                                  License: Others (Non-SPDX)

                                                                                                                                                                                                                                                  Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            timemoryby NERSC

                                                                                                                                                                                                                                                            C++ doticon star image 308 doticonVersion:v3.2.3doticon License: Others (Non-SPDX)

                                                                                                                                                                                                                                                            Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      tracetoolby froglogic

                                                                                                                                                                                                                                                                      C++ doticonstar image 136 doticonVersion:3.1.1doticon
                                                                                                                                                                                                                                                                      License: Weak Copyleft (LGPL-3.0)

                                                                                                                                                                                                                                                                      An efficient and configurable logging framework for C++

                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                tracetoolby froglogic

                                                                                                                                                                                                                                                                                C++ doticon star image 136 doticonVersion:3.1.1doticon License: Weak Copyleft (LGPL-3.0)

                                                                                                                                                                                                                                                                                An efficient and configurable logging framework for C++
                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                                                                                                          lwlogby ChristianPanov

                                                                                                                                                                                                                                                                                          C++ doticonstar image 153 doticonVersion:v1.0.0doticon
                                                                                                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                                                                                                          Very fast synchronous C++17 logging library

                                                                                                                                                                                                                                                                                          Support
                                                                                                                                                                                                                                                                                            Quality
                                                                                                                                                                                                                                                                                              Security
                                                                                                                                                                                                                                                                                                License
                                                                                                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                                                                                                    lwlogby ChristianPanov

                                                                                                                                                                                                                                                                                                    C++ doticon star image 153 doticonVersion:v1.0.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                    Very fast synchronous C++17 logging library
                                                                                                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                                                                                                          License
                                                                                                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                                                                                                              See similar Kits and Libraries