One of the popular and fast logging libraries for C++ is spdlog. It's built using C++11 and can be used either as a header-only library or as a static library (which reduces compile time).
Some interesting features of spdlog include the following:
- Formatting
- Multiple sinks:
- Rotating files
- Console
- Syslog
- Custom (implemented as a single function)
- Multi-threaded and single-threaded versions
- Optional asynchronous mode
One feature that might be missing from spdlog is the direct support for Logstash or Fluentd. If you want to use one of these aggregators, it is still possible to configure spdlog with file sink output and use Filebeat or Fluent Bit to forward the file contents to the appropriate aggregator.