Logger Tool
Project description
logstream
A package that allows you to create simple records of the results of your application's functionality, read them, and clean the file of all obsolete records when not needed. Developed by Bohdan Terskow (c) 2024
Examples of How To Use
CLI: pip install logstream-ua
from logstream import LogStream
logfile_dir = './logs.txt'
logstream = LogStream(logfile_dir)
logstream(description='Test', level=3)
# description - record description
# level - level of record (5 - debug, 4 - info, 3 - warning, 2 - error, 1 - fatal)
# Other Code
read_logs = logstream.read()
print(read_logs) # show text into logfile
logstream.clear() # clear all file from records
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
logstream-ua-0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for logstream_ua-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0facc0036185ff50a3cebda81911b2f0a7097be1babf4aca49eefb8af52cc254 |
|
MD5 | 51f4b0e2630ba7349fc6eda57003ae57 |
|
BLAKE2b-256 | a3d52cf44acdde88c2b5e2a8dfb135d3ae655ba0cee935dbda897fb8d510b594 |