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.2.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.2-cp313-cp313-win_amd64.whl (218.6 kB view details)

Uploaded CPython 3.13Windows x86-64

nexuslog-0.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (393.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nexuslog-0.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (392.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

nexuslog-0.4.2-cp313-cp313-macosx_11_0_arm64.whl (351.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

nexuslog-0.4.2-cp313-cp313-macosx_10_12_x86_64.whl (356.1 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

nexuslog-0.4.2-cp312-cp312-win_amd64.whl (218.9 kB view details)

Uploaded CPython 3.12Windows x86-64

nexuslog-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (394.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nexuslog-0.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (393.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

nexuslog-0.4.2-cp312-cp312-macosx_11_0_arm64.whl (351.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

nexuslog-0.4.2-cp312-cp312-macosx_10_12_x86_64.whl (356.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

nexuslog-0.4.2-cp311-cp311-win_amd64.whl (220.5 kB view details)

Uploaded CPython 3.11Windows x86-64

nexuslog-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (396.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nexuslog-0.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (395.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

nexuslog-0.4.2-cp311-cp311-macosx_11_0_arm64.whl (353.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

nexuslog-0.4.2-cp311-cp311-macosx_10_12_x86_64.whl (357.8 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: nexuslog-0.4.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7d492180e7dd239661993195a4776af9578b01a598c926fa09d3e2acc8301e89
MD5 940a7df2937150c559a64f9e22514124
BLAKE2b-256 789fd1314995b804b2ee91226d04ad536f6b835a06736188aecb97f76ebb0da0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 218.6 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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b031117c3ed54b27851c0b3ebec0fd3a3ba180b269685d58b6002748af8f7665
MD5 fc05540d1e78517ca33ba1d04827c3a9
BLAKE2b-256 4aa4591c81f19c7298749107be8f9d6a7d760a20cfbb20fc5e70b3b5e92d69ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a0d3b71cf7b04bb2a6ec61693dbab7671275e338ca3312552934797d0a44860
MD5 7d26daf964c61d5e5eb1d8558c172aca
BLAKE2b-256 5bd32fab8635e2616f429af951481cfeefeba743ea9582e89f73e6aeb69a3795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d99d49f625765a67e83a7b4ba832082559549093614f70956f323a25183137e
MD5 b12cdc6e4b96770c583c0aa19582cdbc
BLAKE2b-256 7b1067a8c89f50a7eb4127f580f591e11ecc002545bb0ce6df7d453a5f5c11f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7270089985ca283426f05c2649e1d1d8ec90ca652070ad701df5c55eb99f5a9
MD5 312f4f0c57b9a5adbad1b452a2b897a0
BLAKE2b-256 22e743c60c6b3994608caba367736293cd4ecfb151867b150d3ec61f9dcc18e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a941a05fa86a8556b359b625e72730807025da074d18b30b4e2cdec5f8fb85a9
MD5 167a0544796eec6aeae4f580e58c8888
BLAKE2b-256 0cff712f3d33fe4ab146b645d5ae680083f4e6f42ac96253fd6dbcb7556c0e2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 218.9 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 690908961f707c6fe09b002a1d336f7a702f7d1f08b8e210fc4ad764d6779e43
MD5 71efd1850117e8cbe98bcb5ef747f776
BLAKE2b-256 ae7f90f8be74f5090555556f0cc2b69c45a908aff5ca7c0347159f5ca0a47c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd79de966978f1b4a02486d83cae78c36081572cc0f41b9fa12f06bebefc0510
MD5 1b45cda176724b5101aa389021ddf8b4
BLAKE2b-256 919b3b764a5ff1476091708e5101d745b8ef2f6f8d695fcd02760fdd639966cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7a0312a58c4a6848270a97ca1a3c4be30b3a51fbccb60a396d3aa4e00579dd3b
MD5 ef80d09ddb1629ffb407fd02d354df96
BLAKE2b-256 6f613b4ee56c852b3dbe17842da0bf33d0a0211cacc4d981da3db2dfa7f1aad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7b1b83b937dd8e40d1ad60159a5ed21483ed9bb475ec158549a0d4ec7994371
MD5 9c39c8e1cf2e27df7e5749cbda8557d0
BLAKE2b-256 02cddf23895ab02e4e3cc0c5c13b4dca1a42d392acc44135ab1febf39703d677

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 293acc05dd6d0916b2ae4bc5e7879abae0b004963c7864749e85d59c359254f3
MD5 c4461f10991e757a0bf3daf395bda87d
BLAKE2b-256 cc41405aed8aeb0aed8345ecdf3e2d5cbdc38ccf5034637cac25cddbf85d3da9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 220.5 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 07264a4efb67dd6d7398bad14356a1b7c339408b3cb8332917cd58bb926de690
MD5 b61e9ce543ba8b91a739b03e04accf99
BLAKE2b-256 233c89732ef6d5c6e08e31db81ccb4df2be4f67ddb04a893f93c1fef36b2fdce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8744afd026e83d8f899958ac2ef3efb76272ce22101d4a09f3382c141943a884
MD5 7a541afce676d03d101e3501543e1842
BLAKE2b-256 f0279ee91ec16183a03827d9f4d53085317612ed5176b4b3569db88302fa1c93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 796cf5424dc8226ada54796a87792bf85521f23ad0869975742465bd4b67e808
MD5 7d946bac32a2c2d4402d5cc092d05f3d
BLAKE2b-256 238e12180635dd008e7cb8650db9b94facad630e06cc8e8224065a73aa74c7c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c99fa2e6a2b606a0a82d990e45fee4a99dbe75670c483167028c692803afbaf
MD5 38394a698ef951ba1e2a932371a49d17
BLAKE2b-256 d1fd69e74f33282241507d002f744a14f8571328fed138089206134ddde978ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 008b6c556c84a9dec476740424af33a39d89c001066cfad401203effb465ec2e
MD5 857bff9be15c21fe42c4f4714292e874
BLAKE2b-256 65b3e725e2ef1bfe338b56709d820c02111976803fd02cce831183195bc13287

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