mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 08:50:26 +08:00
Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x
This commit is contained in:
commit
459cd21070
28
README.md
28
README.md
@ -1,23 +1,21 @@
|
|||||||
# spdlog
|
# 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
|
||||||
#### Just copy the headers:
|
#### 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.
|
* 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:
|
#### Static lib version
|
||||||
|
* spdlog now supports compiling as a static lib for much faster compile times.
|
||||||
* Homebrew: `brew install spdlog`
|
* Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/blob/v1.x/src/spdlog.cpp) to your build.
|
||||||
* FreeBSD: `cd /usr/ports/devel/spdlog/ && make install clean`
|
* Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker).
|
||||||
* Fedora: `yum install spdlog`
|
|
||||||
* Gentoo: `emerge dev-libs/spdlog`
|
|
||||||
* Arch Linux: `yaourt -S spdlog-git`
|
|
||||||
* vcpkg: `vcpkg install spdlog`
|
|
||||||
|
|
||||||
|
#### 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).
|
||||||
|
|
||||||
## Platforms
|
## Platforms
|
||||||
* Linux, FreeBSD, OpenBSD, Solaris, AIX
|
* Linux, FreeBSD, OpenBSD, Solaris, AIX
|
||||||
@ -25,6 +23,14 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.
|
|||||||
* macOS (clang 3.5+)
|
* macOS (clang 3.5+)
|
||||||
* Android
|
* 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
|
## Features
|
||||||
* Very fast (see [benchmarks](#benchmarks) below).
|
* Very fast (see [benchmarks](#benchmarks) below).
|
||||||
* Headers only, just copy and use.
|
* Headers only, just copy and use.
|
||||||
|
Loading…
Reference in New Issue
Block a user