无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

spdlog日志庫(kù)

2022-01-22 13:57 作者:考4級(jí)  | 我要投稿

Very fast, header-only/compiled, C++ logging library.

Install

Header only version

Copy the include folder to your build tree and use a C++11 compiler.

Static lib version (recommended - much faster compile times)

$ git clone https://github.com/gabime/spdlog.git

$ cd spdlog && mkdir build && cd build

$ cmake .. && make -j

Platforms

  • Linux, FreeBSD, OpenBSD, Solaris, AIX

  • Windows (msvc 2013+, cygwin)

  • macOS (clang 3.5+)

  • Android

Package managers:

  • Debian: sudo apt install libspdlog-dev

  • Homebrew: brew install spdlog

  • MacPorts: sudo port install spdlog

  • FreeBSD: ?pkg install spdlog

  • Fedora: dnf install spdlog

  • Gentoo: emerge dev-libs/spdlog

  • Arch Linux: pacman -S spdlog

  • vcpkg: vcpkg install spdlog

  • conan: spdlog/[>=1.4.1]

  • conda: conda install -c conda-forge spdlog

  • build2: depends: spdlog ^1.8.2

Features

  • Very fast (see benchmarks below).

  • Headers only or compiled

  • Feature rich formatting, using the excellent fmt library.

  • Asynchronous mode (optional)

  • Custom formatting.

  • Multi/Single threaded loggers.

  • Various log targets:

    • Rotating log files.

    • Daily log files.

    • Console logging (colors supported).

    • syslog.

    • Windows event log.

    • Windows debugger (OutputDebugString(..)).

    • Easily extendable with custom log targets.

  • Log filtering - log levels can be modified in runtime as well as in compile time.

  • Support for loading log levels from argv or from environment var.

  • Backtrace support - store debug messages in a ring buffer and display later on demand.

Usage samples

Basic usage


Create stdout/stderr logger object


Basic file logger

Rotating files

Daily files

Backtrace support

Periodic flush

Stopwatch

Log binary data in hex

Logger with multi sinks - each with different format and log level

Asynchronous logging

Asynchronous logger with multi sinks

User defined types

User defined flags in the log pattern

Custom error handler

syslog

Android example

Load log levels from env variable or from argv

So then you can:

Log file open/close event handlers

Replace the Default Logger

Benchmarks

Asynchronous mode

python 輸入與輸出




spdlog日志庫(kù)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
武川县| 昌江| 临沭县| 将乐县| 湘阴县| 富民县| 当雄县| 射洪县| 贵州省| 东方市| 永州市| 衡南县| 永定县| 交口县| 明光市| 临汾市| 张掖市| 临沂市| 沛县| 肃北| 临高县| 房山区| 遂宁市| 柯坪县| 广饶县| 东乡| 右玉县| 息烽县| 区。| 宣恩县| 平山县| 老河口市| 石渠县| 方正县| 扎囊县| 长丰县| 健康| 景德镇市| 富锦市| 茶陵县| 霍邱县|