Skip to main content

Sane Logger

This module provides a simple logging configuration with a named logger for Python applications.

The settings are %(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s.

Installation

You can install the package using pip:

pip install a_sane_logger

Usage

Simply import the module in your code and use the logger:

import a_sane_logger as sn

logger = sn.sane_logger

logger.info("This is an info message.")
logger.error("This is an error message.")

The logs should look like:

2024-10-09 18:57:24,520 [MainThread  ] [INFO ]  This is an info message.
2024-10-09 18:57:26,204 [MainThread  ] [ERROR]  This is an error message.

Metadata

Release files for a-sane-logger 0.3

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

Source distribution (sdist)

Source distribution for a-sane-logger 0.3
File Size Uploaded Provenance Actions
a_sane_logger-0.3.tar.gz 1.8 kB Without provenance Details for a_sane_logger-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-sane-logger 0.3
File Interpreter ABI Platform Actions
a_sane_logger-0.3-py3-none-any.whl Python 3 none any Details for a_sane_logger-0.3-py3-none-any.whl

Total release size: 4.0 kB

Release files / a_sane_logger-0.3.tar.gz

Download URL a_sane_logger-0.3.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
336ba87ecab60ac798b2dda5a317ce61b9cae3833edb9c9a1c8b253892f56da4
BLAKE2b-256 checksum
How to use checksums
4fb03e16296ade1b0add4b94cb25d411ae219b749bcc17d4978eb863166e1d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / a_sane_logger-0.3-py3-none-any.whl

Download URL a_sane_logger-0.3-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ef3ed45e1bcb7a464567a077391c440ae3653ddcf1caa6425c0a71521f184a1
BLAKE2b-256 checksum
How to use checksums
fa7130ef202a6d10f2c239c59dc05b93ccf556fe771010d7ec3ce67c8958927e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Security for a-sane-logger 0.3

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.

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files No provenance

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