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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file logstream-ua-0.1.tar.gz.

File metadata

  • Download URL: logstream-ua-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for logstream-ua-0.1.tar.gz
Algorithm Hash digest
SHA256 10e1e4a4b159b1ad6af372b3ef534b5f1d18b7eb17e84f38cba60bc862401350
MD5 3d6f707c3ae2b38602f48325eeb248fa
BLAKE2b-256 4d7fbb149a64c19e78ae5000c97ec5087d6739a6f1b683493f3368472387d829

See more details on using hashes here.

File details

Details for the file logstream_ua-0.1-py3-none-any.whl.

File metadata

  • Download URL: logstream_ua-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for logstream_ua-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0facc0036185ff50a3cebda81911b2f0a7097be1babf4aca49eefb8af52cc254
MD5 51f4b0e2630ba7349fc6eda57003ae57
BLAKE2b-256 a3d52cf44acdde88c2b5e2a8dfb135d3ae655ba0cee935dbda897fb8d510b594

See more details on using hashes here.

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