Skip to main content

Simple logging for Python

Project description

logslib

Simple logging for people.

Install

pip install logslib

Usage

import logslib

logslib.log("Hello, world!") logslib.log("Warning", type=logslib.WARNING) logslib.dump(users=42, status="ok")

Open log file

logslib.view()

Clear log file

logslib.clear()

Write log to console

logslib.tee = True

Path to log

logslib.log_path

Levels

logslib.levels

Log path: %APPDATA%/logs/filename(filehash)/log.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logslib-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logslib-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file logslib-1.0.0.tar.gz.

File metadata

  • Download URL: logslib-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for logslib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f5ed74808797f7e58718353db913b20692b214076dbebbe4e4c3b5e52a3537bd
MD5 0eec358fd5ce818e16aeefde01cd6e8c
BLAKE2b-256 b5e1247790539c28b4f93439a8e8e9fd2e4b7c900b5276e2084decc47f3aa42a

See more details on using hashes here.

File details

Details for the file logslib-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: logslib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for logslib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4430313478f9bc27bb0678d5a102fc23fc65fc1cd25e5468b654fcfb258997e
MD5 c378730ffe53bd50fe2a8f4729ca394f
BLAKE2b-256 b6bd485cf1cc3728328505be4b29912e9ef6dc8899aebfd323c35d1c6004ff68

See more details on using hashes here.

Supported by

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