Skip to main content

Fast async logger with Python bindings

Project description

NexusLog

License Python Version

High-performance async logging library, compatible with Python standard logging API.

中文文档

Benchmark

Benchmark chart

Benchmarking with 1,000,000 log messages

------------------------------------------------------------
Logger               Time (s)     Msgs/sec        Log size    
------------------------------------------------------------
Python logging       5.237        190,954         82,888,890 bytes
loguru               7.039        142,070         89,888,890 bytes
picologging          1.999        500,306         79,888,882 bytes
spdlog               0.298        3,358,706       79,888,890 bytes
NexusLogger          0.131        7,654,750       97,888,890 bytes
NexusLogger unix_ts  0.127        7,874,086       82,888,890 bytes
------------------------------------------------------------

NexusLogger is 40.09x faster than Python logging
NexusLogger is 53.88x faster than loguru
NexusLogger is 15.30x faster than picologging
NexusLogger is 2.28x faster than spdlog
NexusLogger unix_ts is 41.24x faster than Python logging
NexusLogger unix_ts is 55.42x faster than loguru
NexusLogger unix_ts is 15.74x faster than picologging
NexusLogger unix_ts is 2.34x faster than spdlog

Installation

pip install nexuslog

Quick Start

import nexuslog as logging

logging.basicConfig(level=logging.INFO)

logging.info("Hello, world!")
logging.warning("This is a warning")
logging.error("This is an error")

API

Log Levels

logging.TRACE
logging.DEBUG
logging.INFO
logging.WARNING
logging.ERROR

Module-level Functions

logging.basicConfig(filename=None, level=logging.INFO, unix_ts=False)
logging.trace(message)
logging.debug(message)
logging.info(message)
logging.warning(message)
logging.error(message)

Logger Class

from nexuslog import Logger, Level

logger = Logger("myapp", path="/var/log/app", level=Level.Info)
logger.info("message")
logger.shutdown()

getLogger

import nexuslog as logging

logging.basicConfig(filename="/var/log/app.log", level=logging.DEBUG)
logger = logging.getLogger("myapp")
logger.info("message")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexuslog-0.4.3.tar.gz (108.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nexuslog-0.4.3-cp313-cp313-win_amd64.whl (219.5 kB view details)

Uploaded CPython 3.13Windows x86-64

nexuslog-0.4.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (394.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nexuslog-0.4.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (394.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

nexuslog-0.4.3-cp313-cp313-macosx_11_0_arm64.whl (352.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nexuslog-0.4.3-cp313-cp313-macosx_10_12_x86_64.whl (357.3 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

nexuslog-0.4.3-cp312-cp312-win_amd64.whl (219.7 kB view details)

Uploaded CPython 3.12Windows x86-64

nexuslog-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (395.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nexuslog-0.4.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (394.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

nexuslog-0.4.3-cp312-cp312-macosx_11_0_arm64.whl (352.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

nexuslog-0.4.3-cp312-cp312-macosx_10_12_x86_64.whl (357.6 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

nexuslog-0.4.3-cp311-cp311-win_amd64.whl (221.3 kB view details)

Uploaded CPython 3.11Windows x86-64

nexuslog-0.4.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (397.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nexuslog-0.4.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (396.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

nexuslog-0.4.3-cp311-cp311-macosx_11_0_arm64.whl (354.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

nexuslog-0.4.3-cp311-cp311-macosx_10_12_x86_64.whl (359.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file nexuslog-0.4.3.tar.gz.

File metadata

  • Download URL: nexuslog-0.4.3.tar.gz
  • Upload date:
  • Size: 108.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexuslog-0.4.3.tar.gz
Algorithm Hash digest
SHA256 5f9a7a157e3c1168dd45845367cfd5aef72e3a5a803d6102406e2f956378f769
MD5 e87614830614daebdb90c0dfebdf229d
BLAKE2b-256 d69e69d94da5943664eb3033fa9c08810c61775a9ee96bc5ead215cab7641553

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: nexuslog-0.4.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 219.5 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexuslog-0.4.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2b3b434dc9bfb8544291e839c5ca05292dc9671003b702082cc9c67d3186cf8c
MD5 98ad161eda12a598976354719f8366e1
BLAKE2b-256 388b811750437c0cf100026c860f0b1dbd1d13192d2a7c1a49fb009f3e733578

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18418809e598467dcd4c93e7d3a8bf94ee16cd3946595e5d25cce0aada31b967
MD5 51569ba985bc362a64c08c534018d4de
BLAKE2b-256 b61c35f1ee88ec91fd568f7cb680470b377446d52866d17ea31ff65d39fce2bc

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f52a3a73acdaa65dc5911af40ab34b5b42f5e48f1ace0c707ac1fb2b6056095b
MD5 2e38a07fc969dc95a6834ad4ce9948a2
BLAKE2b-256 98c2c46b218acf6e4f5a9e99ba7c5ce2a743c789945dec349abfe7c758a615ce

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d04ea6a0c4a7ddefc019d97551230559a08f802f03b5ef4efcc6c098cc808a6
MD5 14f2fea4d1574e857395779eca19e1bc
BLAKE2b-256 18cf95a7937c78fd467509363c68855b054de42c121157000b22ebbdb8c1dd26

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 39e1d57d208e25398ab7fd27c3866cae3f8e6de0fcd45dfa0523a51495194124
MD5 ec23d720b6691407a1998f10492248bd
BLAKE2b-256 890d184f1e3287bab585ee5e56082c87b14ef20312a69034dae8426669aa0c8e

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: nexuslog-0.4.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 219.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexuslog-0.4.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dfe2c6d89a8d3f889fd8e5bac2ae3416ea4ee97ee38a4b7ea7b122a4b09ded16
MD5 7041ae12270f58825a63ffbc8d8265c7
BLAKE2b-256 04b6cd7da526f34a81cc0b5e84e4de8f5597e930b5266ad08f5b84067794bdba

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a375373d4d61ed85536595beb35f83e565ddf48c443a2d24183797aa54b1683
MD5 84f8f5043067555e0ce439635a6cfbc3
BLAKE2b-256 12ce3ebaadbd483ee4ce11e2b0cc43029189f32a87f1d164280616e7c6f04271

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4629df1e6c4e1f8e2a730910dc70dbbfa3b0239722b2a86d238fea20ca1a62fa
MD5 2fc32c8a6c9b2f2ec5068e88303a6345
BLAKE2b-256 e463ac575e5eebff158b5781b7580290f24b940c2aff4e45462ba74aa39d6eed

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59cf13b0589a59e21eb025afca06f3db686b514cd68842db78a0f042975a81e4
MD5 a551bc4717f025847c0d252cb6291b3d
BLAKE2b-256 818b7ee4333a7b73a9d98e7a640e1dc43b4bdeaf02b3494d96fd171044649f51

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ac008790acc7d4cb7e38d9377f214aca0a39e805b19d114b46113b70aaa9b6d5
MD5 34f14ff84be4953533ddbe4a322718ef
BLAKE2b-256 0ca18fb8ac0d09b8711dd2085e2afb54189a10368615dc5cff6a4dced3aaa19e

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: nexuslog-0.4.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 221.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nexuslog-0.4.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45a6b012f259f4ffe25aed83e226a5bb4dd86cb448e135eeef297af6b44902b9
MD5 2248a062da03a02b7bbbe8716204f9f9
BLAKE2b-256 8e9877689547818b39f1a6ef8ebd1ce09eaae7aedd04ef16ff0f496fbf152e6c

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a86ca9f570db3149ee02385198043378797e48e97a0160db73ba5ca50a3e2c10
MD5 6cebf3053ad237902dcbddb800d8bc80
BLAKE2b-256 8e6e95aca1d069ac0dfbf4831d67e84baf825ef6bf649a3c360598d26ed83b62

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8c66e18a66cd16d3f04c5129737e44f6215629d28385cc727b392b2b133d07ef
MD5 2c7396557d50280ce47d70bc7914df5e
BLAKE2b-256 6603824ca48310f6609c41f66513571e8880a56cf9cbac8ab21d57b5b73304cb

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e63baff297cb32c2e4ec151ebd51235415b57df74648c7e943e2b643adb30d4
MD5 bff8e71f54275f0404661d2436a8541a
BLAKE2b-256 c7c689ee4d0ecad49cb4201c50b84a8998c0a58005b8e3728545713fda65ee2e

See more details on using hashes here.

File details

Details for the file nexuslog-0.4.3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for nexuslog-0.4.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 467af8a3486f8adbed4ff5d8e39da2f830e57b76df9b1ffd69f9c869cf53abe5
MD5 422302d8fe07f98a21ddc08cc3d640c4
BLAKE2b-256 d4fd85906680ee4dc66e0d14a845937bac0e48ebcf81276d917d78837bdde732

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page