Skip to main content

Logging Module

This library can handle colored log-output and write directly into a logfile.

Init

#!/usr/bin/env python3

from logbuddy import logbuddy

log = logbuddy.log()

Loglevel

At the moment there are a few loglevels defined by default.

  • Info
  • Warning
  • Error
  • Pass
  • Debug
log.Pass("I am a pass-message")
log.Warn("I am a warning-message")
log.Error("I am an error-message")
log.Debug("I am a debug-message")
log.Info("I am an info-message")

Change the color of the levels

log.Info("I am an info-message")

log.setInfo("\x1b[1;36m")

log.Info("And now I have a different color")

If you don't like colors

log.setColor(False)

Need a logfile?

log.setLogfile("somelogfile")

Need a logfile with date?

log.setLogfile("somelogfile")
log.setLogfileDate(True)

Future Plans

  • Creating your own loglevels

Metadata

Release files for logbuddy 0.0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logbuddy 0.0.1.7
File Size Uploaded Provenance
logbuddy-0.0.1.7.tar.gz 2.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for logbuddy 0.0.1.7
File Interpreter ABI Platform
logbuddy-0.0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 kB

Release files / logbuddy-0.0.1.7.tar.gz

Download URL logbuddy-0.0.1.7.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c0500c600dbedcdfee339a65f4ff9112d9980fc37a0de799abeb407f1b8a8ae2
BLAKE2b-256 checksum
How to use checksums
5185b2798bc8dab79c76713a0d9960f203b474b5fd1ba1bf4b012e0da46ad2cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Release files / logbuddy-0.0.1.7-py3-none-any.whl

Download URL logbuddy-0.0.1.7-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aec0fce748a4b44bf97dcdc7a03470bba0acff785795666a21e015b4794430e2
BLAKE2b-256 checksum
How to use checksums
5fafe17e8565f131ffe85f3b8ae174a61032396fccfa20141d518b9e8941178a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Security for logbuddy 0.0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page