Fast async logger with Python bindings
Project description
NexusLog
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.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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d492180e7dd239661993195a4776af9578b01a598c926fa09d3e2acc8301e89
|
|
| MD5 |
940a7df2937150c559a64f9e22514124
|
|
| BLAKE2b-256 |
789fd1314995b804b2ee91226d04ad536f6b835a06736188aecb97f76ebb0da0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b031117c3ed54b27851c0b3ebec0fd3a3ba180b269685d58b6002748af8f7665
|
|
| MD5 |
fc05540d1e78517ca33ba1d04827c3a9
|
|
| BLAKE2b-256 |
4aa4591c81f19c7298749107be8f9d6a7d760a20cfbb20fc5e70b3b5e92d69ec
|
File details
Details for the file nexuslog-0.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 393.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a0d3b71cf7b04bb2a6ec61693dbab7671275e338ca3312552934797d0a44860
|
|
| MD5 |
7d26daf964c61d5e5eb1d8558c172aca
|
|
| BLAKE2b-256 |
5bd32fab8635e2616f429af951481cfeefeba743ea9582e89f73e6aeb69a3795
|
File details
Details for the file nexuslog-0.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 392.9 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d99d49f625765a67e83a7b4ba832082559549093614f70956f323a25183137e
|
|
| MD5 |
b12cdc6e4b96770c583c0aa19582cdbc
|
|
| BLAKE2b-256 |
7b1067a8c89f50a7eb4127f580f591e11ecc002545bb0ce6df7d453a5f5c11f4
|
File details
Details for the file nexuslog-0.4.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 351.1 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7270089985ca283426f05c2649e1d1d8ec90ca652070ad701df5c55eb99f5a9
|
|
| MD5 |
312f4f0c57b9a5adbad1b452a2b897a0
|
|
| BLAKE2b-256 |
22e743c60c6b3994608caba367736293cd4ecfb151867b150d3ec61f9dcc18e6
|
File details
Details for the file nexuslog-0.4.2-cp313-cp313-macosx_10_12_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 356.1 kB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a941a05fa86a8556b359b625e72730807025da074d18b30b4e2cdec5f8fb85a9
|
|
| MD5 |
167a0544796eec6aeae4f580e58c8888
|
|
| BLAKE2b-256 |
0cff712f3d33fe4ab146b645d5ae680083f4e6f42ac96253fd6dbcb7556c0e2f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
690908961f707c6fe09b002a1d336f7a702f7d1f08b8e210fc4ad764d6779e43
|
|
| MD5 |
71efd1850117e8cbe98bcb5ef747f776
|
|
| BLAKE2b-256 |
ae7f90f8be74f5090555556f0cc2b69c45a908aff5ca7c0347159f5ca0a47c4f
|
File details
Details for the file nexuslog-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 394.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd79de966978f1b4a02486d83cae78c36081572cc0f41b9fa12f06bebefc0510
|
|
| MD5 |
1b45cda176724b5101aa389021ddf8b4
|
|
| BLAKE2b-256 |
919b3b764a5ff1476091708e5101d745b8ef2f6f8d695fcd02760fdd639966cd
|
File details
Details for the file nexuslog-0.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 393.5 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a0312a58c4a6848270a97ca1a3c4be30b3a51fbccb60a396d3aa4e00579dd3b
|
|
| MD5 |
ef80d09ddb1629ffb407fd02d354df96
|
|
| BLAKE2b-256 |
6f613b4ee56c852b3dbe17842da0bf33d0a0211cacc4d981da3db2dfa7f1aad3
|
File details
Details for the file nexuslog-0.4.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 351.6 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7b1b83b937dd8e40d1ad60159a5ed21483ed9bb475ec158549a0d4ec7994371
|
|
| MD5 |
9c39c8e1cf2e27df7e5749cbda8557d0
|
|
| BLAKE2b-256 |
02cddf23895ab02e4e3cc0c5c13b4dca1a42d392acc44135ab1febf39703d677
|
File details
Details for the file nexuslog-0.4.2-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 356.4 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
293acc05dd6d0916b2ae4bc5e7879abae0b004963c7864749e85d59c359254f3
|
|
| MD5 |
c4461f10991e757a0bf3daf395bda87d
|
|
| BLAKE2b-256 |
cc41405aed8aeb0aed8345ecdf3e2d5cbdc38ccf5034637cac25cddbf85d3da9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07264a4efb67dd6d7398bad14356a1b7c339408b3cb8332917cd58bb926de690
|
|
| MD5 |
b61e9ce543ba8b91a739b03e04accf99
|
|
| BLAKE2b-256 |
233c89732ef6d5c6e08e31db81ccb4df2be4f67ddb04a893f93c1fef36b2fdce
|
File details
Details for the file nexuslog-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 396.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8744afd026e83d8f899958ac2ef3efb76272ce22101d4a09f3382c141943a884
|
|
| MD5 |
7a541afce676d03d101e3501543e1842
|
|
| BLAKE2b-256 |
f0279ee91ec16183a03827d9f4d53085317612ed5176b4b3569db88302fa1c93
|
File details
Details for the file nexuslog-0.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 395.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
796cf5424dc8226ada54796a87792bf85521f23ad0869975742465bd4b67e808
|
|
| MD5 |
7d946bac32a2c2d4402d5cc092d05f3d
|
|
| BLAKE2b-256 |
238e12180635dd008e7cb8650db9b94facad630e06cc8e8224065a73aa74c7c4
|
File details
Details for the file nexuslog-0.4.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 353.3 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c99fa2e6a2b606a0a82d990e45fee4a99dbe75670c483167028c692803afbaf
|
|
| MD5 |
38394a698ef951ba1e2a932371a49d17
|
|
| BLAKE2b-256 |
d1fd69e74f33282241507d002f744a14f8571328fed138089206134ddde978ca
|
File details
Details for the file nexuslog-0.4.2-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: nexuslog-0.4.2-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 357.8 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
008b6c556c84a9dec476740424af33a39d89c001066cfad401203effb465ec2e
|
|
| MD5 |
857bff9be15c21fe42c4f4714292e874
|
|
| BLAKE2b-256 |
65b3e725e2ef1bfe338b56709d820c02111976803fd02cce831183195bc13287
|