No project description provided
Project description
jlogr
A simple python logger written in Rust.
Logs in one format only: {timestamp} :: {log level} :: {message}
Example:
import info from jlogr
info("hello")
If you use the Logger class, you can save to a file.
import Logger from jlogr
logger = Logger("my_file.log")
logger.info("this will go to the file")
You might be taking a large amount of logs that you'd like to buffer.
import Logger from jlogr
logger = Logger("my_file.log")
for i in range(1000):
logger.push(f"this is log of index {i}", "info")
logger.dump()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jlogr-0.1.218.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for jlogr-0.1.218-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b740df1dfd8539e12c35ee0db158623c7f6d1be4123570d4ae77fcbef0b951e |
|
MD5 | 55269c47ac0a118249912ba48e57ec63 |
|
BLAKE2b-256 | 2b2679da6c849827fa2400931e2776e8194a0cd448ce3d2efcee811fdf556129 |