@@ -27,12 +29,11 @@ Just copy the files to your build tree and use a C++11 compiler
* Console logging.
* Linux syslog.
* Easily extendable with custom log targets (just implement a single function in the [sink](include/spdlog/sinks/sink.h) interface).
* Optional async logging .
* Optional, (extremly fast!), async logging.
* Log levels.
## Benchmarks
Below are some [benchmarks](bench) comparing the time needed to log 1,000,000 lines to file under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz (the best of 3 runs for each logger):
...
...
@@ -43,8 +44,6 @@ Below are some [benchmarks](bench) comparing the time needed to log 1,000,000 li
|10|15.151ss|3.546s|3.500s|0.641s|0.199s|
## Usage Example
```c++
#include <iostream>
...
...
@@ -52,33 +51,60 @@ Below are some [benchmarks](bench) comparing the time needed to log 1,000,000 li
intmain(int,char*[])
{
namespacespd=spdlog;
try
{
std::stringfilename="spdlog_example";
std::stringfilename="logs/spdlog_example";
// Set log level to all loggers to DEBUG and above