Skip to main content

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

This version

0.1

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)

Uploaded Source

Built Distribution

logstream_ua-0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page