最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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ó)家法律
乌鲁木齐市| 视频| 金湖县| 聂荣县| 华安县| 巴林右旗| 彭州市| 资中县| 临城县| 右玉县| 陆河县| 鸡西市| 牟定县| 卢氏县| 宁阳县| 买车| 新晃| 四会市| 潞城市| 普兰县| 南宁市| 紫阳县| 绍兴市| 九江市| 玉屏| 河南省| 云梦县| 葵青区| 虞城县| 铁岭市| 布拖县| 泗水县| 页游| 大关县| 潼关县| 八宿县| 太和县| 厦门市| 闻喜县| 邹平县| 桐梓县|