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.227.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for jlogr-0.1.227-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55ec63d756a75842b573255b0328efc6a077c5238e83a90d7b40a84b8661019 |
|
MD5 | bacf668e484b182e324a5d7fb9fa4f15 |
|
BLAKE2b-256 | 7d4cb2e95cd02f0a53fe9f683cf4cc669ad769619945e14945375ccbd375d87b |