mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-24 09:21:39 +08:00
Update README.md
This commit is contained in:
parent
d439f75491
commit
a48fe674ee
31
README.md
31
README.md
@ -1,23 +1,24 @@
|
||||
# spdlog
|
||||
|
||||
Very fast, header only, C++ logging library. [](https://travis-ci.org/gabime/spdlog) [](https://ci.appveyor.com/project/gabime/spdlog)
|
||||
Very fast, header only/statically compiled, C++ logging library. [](https://travis-ci.org/gabime/spdlog) [](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. [
|
||||
* 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. [ done in Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz
|
||||
|
Loading…
Reference in New Issue
Block a user