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

Benchmarking with 1,000,000 log messages

------------------------------------------------------------
Logger               Time (s)     Msgs/sec        Log size    
------------------------------------------------------------
Python logging       5.157        193,896         81,888,890 bytes
picologging          1.893        528,323         78,888,882 bytes
NexusLogger          0.135        7,426,915       97,888,890 bytes
NexusLogger unix_ts  0.130        7,707,092       82,888,890 bytes
------------------------------------------------------------

NexusLogger is 38.30x faster than Python logging
NexusLogger is 14.06x faster than picologging
NexusLogger unix_ts is 39.75x faster than Python logging
NexusLogger unix_ts is 14.59x faster than picologging

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.1.tar.gz (14.7 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.1-cp313-cp313-win_amd64.whl (218.3 kB view details)

Uploaded CPython 3.13Windows x86-64

nexuslog-0.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (397.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nexuslog-0.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (396.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

nexuslog-0.4.1-cp313-cp313-macosx_11_0_arm64.whl (350.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

nexuslog-0.4.1-cp312-cp312-win_amd64.whl (218.7 kB view details)

Uploaded CPython 3.12Windows x86-64

nexuslog-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (397.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nexuslog-0.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (396.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

nexuslog-0.4.1-cp312-cp312-macosx_11_0_arm64.whl (351.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

nexuslog-0.4.1-cp311-cp311-win_amd64.whl (220.2 kB view details)

Uploaded CPython 3.11Windows x86-64

nexuslog-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (400.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nexuslog-0.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (398.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

nexuslog-0.4.1-cp311-cp311-macosx_11_0_arm64.whl (353.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

nexuslog-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl (357.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: nexuslog-0.4.1.tar.gz
  • Upload date:
  • Size: 14.7 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.1.tar.gz
Algorithm Hash digest
SHA256 c5e335cfc4cbc0b58f9ed1ce5c6b7d2955f9ec9043d37d42679f6eb43f0f830f
MD5 8f6064d884ceea0962be5670500d10ee
BLAKE2b-256 67cebc8bf477895a1af1081bd12c71827071554601d3aa2a31e40f5f0857b566

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 218.3 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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c363cc7e643357d7473b164d236a31767812828f1f5cf370d707e35a298c7ed3
MD5 102f0d6df00a3883254709a79b3e5ad0
BLAKE2b-256 2a05782a82c05b4da10f4362f9af5f90e2bacfd0a015001cef02c2074a56eecc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e83ddce4e5a6193c0ad8af8c042c3c6c5790718b13791c048700f644724a49b3
MD5 5450f75581e5011cb549e70696ff089f
BLAKE2b-256 94a02fc628c04823d3246f7acc76d111418c2e69a09564bc04920a1a46774942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 627758861b944c058dfd8536e3eca1ecae6d382f37b1eebe8e46eb8312af6732
MD5 c6ea9e5d58d2fcb7047fc770b0201d44
BLAKE2b-256 b54a210952fbc25f46987d2fe45ec37ff14bc8b0e8bc2f6228965dbe7d065827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3b7f87806f54e52043bac6315eb5905401946e21208b826345e1627bdfcd6c7
MD5 16e5371ecfcf6afe861f2c4fd0783969
BLAKE2b-256 e7375acdc85205934eb65460c523f37f7f35a08f36a19581ac0ca1db515ac4f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 abe95abfeb87e4c3ddcdb13c057df2715ae2f8e4e4ca28c5507d829ecfcf441a
MD5 cea2eae16367e62592a90061e03ffad5
BLAKE2b-256 c7c6105758d72b7af7b4808df402592bbeb4399216e98cc9e5b0362991abf562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 218.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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7dad77aed3b75d79ba3f065b364b01ed77a80460415434e86b5f9153ef0e292
MD5 0efaad194f3e752ec3c4677366d118a1
BLAKE2b-256 b494f734494b11a95bdc64fc0579a1d17542b81cd2b8f80b511d7c3fe5096b51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a571e3878f6444a80abb86376f17e5d30f3ef69cea6109aeeaaf62651a546ebb
MD5 8e61dabea4544a93a6f771cba231b3fe
BLAKE2b-256 573a84d38d96dbf9b9e551f0e6e57df4295db200a2249126a8aefbe3e267f362

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 28f8ea2186252eb77f0fb5308b0cbc653ec463e0632190201c90770392578403
MD5 54a0029401ad416587df6ec78b6f1b62
BLAKE2b-256 69609ec8e91c9b3b8dfb0464a340c8a4587ee6e2191c399430be5817ce64cac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63dbac87383881d3b900cb1c83f699dac6d10dd9b6582abaadbf6f5589d6c865
MD5 c3201a133ed8897ffe3bf0cdeaec702d
BLAKE2b-256 7d5e71f6894e9a56824d6e1ec6bda273a1360119f744300bb2683a813ae3339a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7be984c7dade3426fade37bad3398510aaf6772d75a6b5d691c47e27defb236e
MD5 2bff940dd3bb05c51f73610639e03226
BLAKE2b-256 34d4c0033f4c393f2aaa79b6b703b96cdf056c94c5be74880e3a10fd68446c42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexuslog-0.4.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 220.2 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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 213804a29d9c1c26b9ccdb6e17c216af8a7e416423870f46e8147bc9c4ac6cc8
MD5 622727d6d1ab36faa5110fec550aafd3
BLAKE2b-256 9def26d75165c730cc9b6d4ee3b0e4154dca33bb1fae7f40a5c779b5635729f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d2f7191cc6461bc1638b93e16f9ee15fc1f22cd8e7ca1af25b76d135c997220
MD5 93155aeb98db18d2e0cc8e1dbef0d79b
BLAKE2b-256 81bc6941230000fd26af58d86c8099a57031b01bfd60e6dcd348e2acd0d02451

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1cbcf409715d06a1c15fb946450a03e440d670882a2d8f6cfc17f5bdc968938e
MD5 cf4cb9591699d68238ed0576743f157b
BLAKE2b-256 775f0c81f62482f2e41ce2b872799dacc3a63edd440fee12105492a8d85be579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68c46ca27b18ec4e319c7edc6883809e90495028175bd714b4c66f55823a3654
MD5 6b01c7c07ee1bf2ef406d54ec0583196
BLAKE2b-256 6aff4e6435497c0f5a4d444e30915bd0a6b50b5ca9aec9cb179c64a0670dcc87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nexuslog-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1b4c02df10246f105f0292dc8e8277e8e60f8947219e249fbbbcf6edf4986cb8
MD5 debaac8dd64219d56582f7a3f05df57d
BLAKE2b-256 d4c34fb5843baa6bd3a2d4e1dfd0f39d1facf236f7a1d0ea4b1823502ab522c9

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