Skip to main content

Neatlogger

PyPi Version MIT License Issues
Neat adaptions to the loguru package which wraps logging in python.

Idea

This wrapper around loguru shortcuts your way to more simple usage of loggers, especially useful in small, production-ready scripts:

  • Provides the shorthand log instead of logger
  • Provides new levels: NEW, PROGRESS, READ, WRITE, DONE.
  • Formats logger outputs more cleanly, skips unnecessary information.

Example usage:

from neatlogger import log

log.new("Welcome to my script")
log.trace("Some minor tracing message")
x = 42
log.debug("Let's debug value x={}", x)
log.info("By the way, it's going well so far.")
log.progress("Heavy calculation ahead...")
log.read("Reading in some data...")
log.write("Writing some output file...")
log.warning("Note that writing files could take some time!")
try:
    x / 0
except Exception as e:
    log.error("An error occured: {}", e)
log.success("Yey, found a solution to the problem eventually.")
log.done("")

Example output

Install

pip install neatlogger

Requires:

  • loguru

Metadata

Release files for Neatlogger 0.1.2

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

Source distribution (sdist)

Source distribution for Neatlogger 0.1.2
File Size Uploaded
neatlogger-0.1.2.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 7.4 kB

Release files / neatlogger-0.1.2.tar.gz

Download URL neatlogger-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
67698315498515f4e0938953176fde93f739144d9f32660f7453a3c94611bdcf
BLAKE2b-256 checksum
How to use checksums
c6b83b3e9454d198e0833c487bd462f58810755c4d5c7f8aba7a465dbf3c5e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.11 Windows/10

Release files / neatlogger-0.1.2-py3-none-any.whl

Download URL neatlogger-0.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7db9af8958939d2b8be133b9ef9f81b8948cb9c8f6f95d61cf7bd23751064d8
BLAKE2b-256 checksum
How to use checksums
fcb7ee5ed21e04fe8ac215dbc02bffcb0b6999d1b0c16805c5c3d9d72fd1ef77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.11 Windows/10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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