All Projects → bodgergely → spdlog-python

bodgergely / spdlog-python

Licence: MIT license
python wrapper around C++ spdlog ([email protected]:gabime/spdlog.git)

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to spdlog-python

spdlog setup
spdlog setup initialization via file configuration for convenience.
Stars: ✭ 68 (+47.83%)
Mutual labels:  logger, spdlog
lines-logger
Browser logger that rests lines in peace
Stars: ✭ 26 (-43.48%)
Mutual labels:  logger
log
Aplus Framework Log Library
Stars: ✭ 14 (-69.57%)
Mutual labels:  logger
loggers
Abstract logging for Golang projects. A kind of log4go in the spirit of log4j
Stars: ✭ 17 (-63.04%)
Mutual labels:  logger
ng-logger
Angular logger service
Stars: ✭ 65 (+41.3%)
Mutual labels:  logger
Web-Tracker
Stand alone program that Tracks/Logs all the opened websites in the Chrome Browser. Even incognito! *No need to install anything in browser*
Stars: ✭ 34 (-26.09%)
Mutual labels:  logger
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (+0%)
Mutual labels:  logger
logops
Really simple and performant logger for node projects compatible with any kind of deployments as your server operations/environment defined
Stars: ✭ 20 (-56.52%)
Mutual labels:  logger
logback-access-spring-boot-starter
Spring Boot Starter for Logback-access.
Stars: ✭ 153 (+232.61%)
Mutual labels:  logger
l
Golang Pretty Logger
Stars: ✭ 51 (+10.87%)
Mutual labels:  logger
WormholyForObjectiveC
Network debugging made easy,This network debugging tool is developed based on the swift version of Wormholy.
Stars: ✭ 21 (-54.35%)
Mutual labels:  logger
python-sutime
Python wrapper for Stanford CoreNLP's SUTime
Stars: ✭ 143 (+210.87%)
Mutual labels:  python-wrapper
LogDNA-Android-Client
Android client for LogDNA
Stars: ✭ 22 (-52.17%)
Mutual labels:  logger
DustViewerSharp
UART-USB based dust sensor viewer(and also logging) program by C#
Stars: ✭ 38 (-17.39%)
Mutual labels:  logger
JJSwiftLog
Swift log library for all platform
Stars: ✭ 51 (+10.87%)
Mutual labels:  logger
QuickTraceiOSLogger
A real time iOS log trace tool, view iOS log with pc web browser under local area network, which will automatically scroll like xcode. 一个实时的iOS日志跟踪工具,在局域网中使用 PC Web 浏览器查看 iOS 日志,它将像xcode一样自动滚动。
Stars: ✭ 16 (-65.22%)
Mutual labels:  logger
Torch-Scope
A Toolkit for Training, Tracking, Saving Models and Syncing Results
Stars: ✭ 62 (+34.78%)
Mutual labels:  logger
ets2-job-logger
ETS2 Job Logger
Stars: ✭ 15 (-67.39%)
Mutual labels:  logger
wlog
A simple logging interface that supports cross-platform color and concurrency.
Stars: ✭ 59 (+28.26%)
Mutual labels:  logger
DRF-API-Logger
An API Logger for your Django Rest Framework project.
Stars: ✭ 184 (+300%)
Mutual labels:  logger

Build Status

spdlog-python

python wrapper around the fast C++ logger called spdlog

Introduction

Python wrapper (pybind11) around the C++ spdlog logging library.

Why choose spdlog?

https://kjellkod.wordpress.com/2015/06/30/the-worlds-fastest-logger-vs-g3log/

Try running tests/spdlog_vs_logging.py and see what results you get on your system.

spdlog-python vs logging (standard lib)

How many microseconds it takes on average to complete a log function (info(), debug() etc) using a FileLogger. On reasonable sized log messages spdlog takes 4% (async mode enabled) and 6% (sync mode) of the time it would take to complete using the standard logging module.

Async mode with 8MB queue with blocking mode.

msg len (bytes) spdlog sync (microsec) spdlog async (microsec) logging (microsec)
10 1.2 0.87 24.6
100 1.2 1.03 24.6
300 1.5 1.07 24.9
1000 2.4 1.16 26.8
5000 6.2 2.31 31.7
20000 15.3 7.51 48.0

Installation

  1. pip install spdlog will get a distribution from pypi.org

or

  1. from github:

pip install pybind11 - if missing

git clone https://github.com/bodgergely/spdlog-python.git
cd spdlog-python
git submodule update --init --recursive
python setup.py install

Usage

./python
import spdlog as spd
logger = spd.FileLogger('fast_logger', '/tmp/spdlog_example.log')
logger.set_level(spd.LogLevel.INFO)
logger.info('Hello World!')
logger.debug('I am not so important.')

To run the speed test:

python ./tests/spdlog_vs_logging.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].