From a48fe674ee144710489676139d12c09d49748854 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:51:04 +0300 Subject: [PATCH 01/18] Update README.md --- README.md | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7b3d39d7..26056268 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,24 @@ # spdlog -Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.org/gabime/spdlog.svg?branch=master)](https://travis-ci.org/gabime/spdlog)  [![Build status](https://ci.appveyor.com/api/projects/status/d2jnxclg20vd0o50?svg=true)](https://ci.appveyor.com/project/gabime/spdlog) +Very fast, header only/statically compiled, C++ logging library. [![Build Status](https://travis-ci.org/gabime/spdlog.svg?branch=master)](https://travis-ci.org/gabime/spdlog)  [![Build status](https://ci.appveyor.com/api/projects/status/d2jnxclg20vd0o50?svg=true)](https://ci.appveyor.com/project/gabime/spdlog) -## Install +## Install +### Header only version #### Just copy the headers: * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. -#### Or use your favorite package manager: +### compiled version (recommended) +spdlog now supports compiling as a static lib for much faster compile times. +* Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. +* Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) -* Homebrew: `brew install spdlog` -* FreeBSD: `cd /usr/ports/devel/spdlog/ && make install clean` -* Fedora: `yum install spdlog` -* Gentoo: `emerge dev-libs/spdlog` -* Arch Linux: `yaourt -S spdlog-git` -* vcpkg: `vcpkg install spdlog` - +Or use CMake: +* Build `libspdlog.a`: ```cmake ..``` +* Use it ```target_link_libraries(example spdlog::spdlog)``` +* see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt) ## Platforms * Linux, FreeBSD, OpenBSD, Solaris, AIX @@ -25,6 +26,14 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci. * macOS (clang 3.5+) * Android +## Package managers: +* Homebrew: `brew install spdlog` +* FreeBSD: `cd /usr/ports/devel/spdlog/ && make install clean` +* Fedora: `yum install spdlog` +* Gentoo: `emerge dev-libs/spdlog` +* Arch Linux: `yaourt -S spdlog-git` +* vcpkg: `vcpkg install spdlog` + ## Features * Very fast (see [benchmarks](#benchmarks) below). * Headers only, just copy and use. @@ -42,7 +51,7 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci. * Severity based filtering - threshold levels can be modified in runtime as well as in compile time. * Binary data logging. - + ## Benchmarks Below are some [benchmarks](https://github.com/gabime/spdlog/blob/v1.x/bench/bench.cpp) done in Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz From 9562ce3b873567f1a806a248c7ae2d0da58dc6d6 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:51:30 +0300 Subject: [PATCH 02/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 26056268..26bf93a7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) -Or use CMake: +or use CMake: * Build `libspdlog.a`: ```cmake ..``` * Use it ```target_link_libraries(example spdlog::spdlog)``` * see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt) From ba7019de8adf80b567d465da905534bd8a42eac2 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:52:18 +0300 Subject: [PATCH 03/18] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 26bf93a7..4efac5c8 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status ## Install ### Header only version -#### Just copy the headers: - * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. ### compiled version (recommended) From 6586f3ed298efdc3b5a37770628502f19ffb9bc5 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:52:59 +0300 Subject: [PATCH 04/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4efac5c8..1b3d7602 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status ### Header only version * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. -### compiled version (recommended) +### Static lib version (recommended) spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) From 1e105f88cadebf45eb8e2763ff7902effa0f3fad Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:53:50 +0300 Subject: [PATCH 05/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b3d7602..c9cb0a2b 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,11 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. ### Static lib version (recommended) -spdlog now supports compiling as a static lib for much faster compile times. +* spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) -or use CMake: +* or use CMake: * Build `libspdlog.a`: ```cmake ..``` * Use it ```target_link_libraries(example spdlog::spdlog)``` * see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt) From f478eaa98eee162ab954bdcfbeb3dec3fa0a83eb Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:56:22 +0300 Subject: [PATCH 06/18] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c9cb0a2b..0be8f22c 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status ### Static lib version (recommended) * spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. -* Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) +* Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). -* or use CMake: -* Build `libspdlog.a`: ```cmake ..``` -* Use it ```target_link_libraries(example spdlog::spdlog)``` -* see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt) +**Or use CMake:** +* Build "libspdlog.a" (```cmake ..```) +* Use it ```target_link_libraries(my-program spdlog::spdlog)``` . +* see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt). ## Platforms * Linux, FreeBSD, OpenBSD, Solaris, AIX From 4dec9655697f334e608d8b42f03bcdfeb18babfa Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:57:00 +0300 Subject: [PATCH 07/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0be8f22c..1a76b0f2 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status ## Install -### Header only version +#### Header only version * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. -### Static lib version (recommended) +#### Static lib version (recommended) * spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). From abe1e37253d0840088138fe5266f36fcd24e1794 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:57:29 +0300 Subject: [PATCH 08/18] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a76b0f2..29e54953 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status * spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). - -**Or use CMake:** +Or use CMake: * Build "libspdlog.a" (```cmake ..```) * Use it ```target_link_libraries(my-program spdlog::spdlog)``` . * see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt). From 4cc0876efaba00033329c5f81a7bf236bd8ab08e Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:57:56 +0300 Subject: [PATCH 09/18] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29e54953..03a81848 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status * spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). + Or use CMake: * Build "libspdlog.a" (```cmake ..```) * Use it ```target_link_libraries(my-program spdlog::spdlog)``` . From c75fbabc0f17d3988460d02810de7e12d8116396 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 00:59:36 +0300 Subject: [PATCH 10/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03a81848..d1de213a 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status #### Static lib version (recommended) * spdlog now supports compiling as a static lib for much faster compile times. -* Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. +* Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/blob/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). Or use CMake: * Build "libspdlog.a" (```cmake ..```) * Use it ```target_link_libraries(my-program spdlog::spdlog)``` . -* see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt). +* see [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). ## Platforms * Linux, FreeBSD, OpenBSD, Solaris, AIX From b6a28b497bda509cb2eb9ac6b2f2a258c2db647e Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:00:29 +0300 Subject: [PATCH 11/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1de213a..3f074a59 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). Or use CMake: -* Build "libspdlog.a" (```cmake ..```) -* Use it ```target_link_libraries(my-program spdlog::spdlog)``` . +* Build it (```cmake ..```). +* Use it (```target_link_libraries(my-program spdlog::spdlog)``` . * see [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). ## Platforms From 41df6c4df2e2efc9549f63eccac7141c7afa0ea2 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:01:44 +0300 Subject: [PATCH 12/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f074a59..c0d75703 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status Or use CMake: * Build it (```cmake ..```). -* Use it (```target_link_libraries(my-program spdlog::spdlog)``` . +* Use it (```target_link_libraries(my-program spdlog::spdlog)```). * see [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). ## Platforms From 7fea60183f770ff847a325ff1af190325b832e26 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:02:19 +0300 Subject: [PATCH 13/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0d75703..ed0ddef2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Very fast, header only/statically compiled, C++ logging library. [![Build Status Or use CMake: * Build it (```cmake ..```). * Use it (```target_link_libraries(my-program spdlog::spdlog)```). -* see [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). +* See [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). ## Platforms * Linux, FreeBSD, OpenBSD, Solaris, AIX From e79531b2922f0eadd92346a2eef41836ea2facaf Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:03:34 +0300 Subject: [PATCH 14/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed0ddef2..e932c9d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # spdlog -Very fast, header only/statically compiled, C++ logging library. [![Build Status](https://travis-ci.org/gabime/spdlog.svg?branch=master)](https://travis-ci.org/gabime/spdlog)  [![Build status](https://ci.appveyor.com/api/projects/status/d2jnxclg20vd0o50?svg=true)](https://ci.appveyor.com/project/gabime/spdlog) +Very fast, header-only/statically-compiled, C++ logging library. [![Build Status](https://travis-ci.org/gabime/spdlog.svg?branch=master)](https://travis-ci.org/gabime/spdlog)  [![Build status](https://ci.appveyor.com/api/projects/status/d2jnxclg20vd0o50?svg=true)](https://ci.appveyor.com/project/gabime/spdlog) From 1a779077db114871084bd279de83294f297194db Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:04:33 +0300 Subject: [PATCH 15/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e932c9d7..9528c69f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Very fast, header-only/statically-compiled, C++ logging library. [![Build Status * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/blob/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). -Or use CMake: + Or use CMake: * Build it (```cmake ..```). * Use it (```target_link_libraries(my-program spdlog::spdlog)```). * See [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). From ce4da69cc0883a900fcee021161e23de91b7278c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:04:54 +0300 Subject: [PATCH 16/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9528c69f..e932c9d7 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Very fast, header-only/statically-compiled, C++ logging library. [![Build Status * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/blob/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). - Or use CMake: +Or use CMake: * Build it (```cmake ..```). * Use it (```target_link_libraries(my-program spdlog::spdlog)```). * See [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). From 5a3e0d5e8599e543919da141d9a9a829b69cf449 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:06:31 +0300 Subject: [PATCH 17/18] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e932c9d7..a0c13187 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ Very fast, header-only/statically-compiled, C++ logging library. [![Build Status * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). Or use CMake: -* Build it (```cmake ..```). -* Use it (```target_link_libraries(my-program spdlog::spdlog)```). +* Build it (```cmake ..```) and then use it (```target_link_libraries(my-program spdlog::spdlog)```). * See [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt). ## Platforms From 9b788a882d09c11cf80fba7bdd28b12ab90c3042 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 29 May 2019 01:07:42 +0300 Subject: [PATCH 18/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0c13187..58e67ca4 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ Very fast, header-only/statically-compiled, C++ logging library. [![Build Status #### Header only version * Copy the source [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++11 compiler. -#### Static lib version (recommended) +#### Static lib version * spdlog now supports compiling as a static lib for much faster compile times. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/blob/v1.x/src/spdlog.cpp) to your build. * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker). -Or use CMake: +#### CMake * Build it (```cmake ..```) and then use it (```target_link_libraries(my-program spdlog::spdlog)```). * See [example](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt).