Skip to main content

Char's Better Logs

A project started to fix a problem I was having with the default python logging library

USAGE

Simply install it with pip install chars-betterlogs and add it to your code with:

from chars_betterlogs.logs import Logging

then make a variable:

#                         The Filename         String to add before the log        Whether to print the log (Defaults to True)
logger:Logging = Logging('filename.log', 'This gets added before the log starts!', False)

Tada you now have a callable logger!

Example Script

from chars_betterlogs.logs import Logging
from datetime import datetime

logger:Logging = Logging('log_' + str(datetime.today().strftime('%d_%m_%Y-%H_%M_%S')) + '.log')

logging.log_info('yipee!')
logging.close() # Don't forget to end the log file before the script ends!

Metadata

Release files for chars-betterlogs 4.0.0

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

Source distribution (sdist)

Source distribution for chars-betterlogs 4.0.0
File Size Uploaded Provenance Actions
chars_betterlogs-4.0.0.tar.gz 19.7 kB Without provenance Details for chars_betterlogs-4.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chars-betterlogs 4.0.0
File Interpreter ABI Platform Actions
chars_betterlogs-4.0.0-py3-none-any.whl Python 3 none any Details for chars_betterlogs-4.0.0-py3-none-any.whl

Total release size: 42.3 kB

Release files / chars_betterlogs-4.0.0.tar.gz

Download URL chars_betterlogs-4.0.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c34ddd21af245eba8997357f004667fc0a5dc1956159283b6a7cf7695358f14
BLAKE2b-256 checksum
How to use checksums
9f2fa4ced532b3974d0f29ff16de0f9b511b8d7d740302edb81ab5fd8b73c353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / chars_betterlogs-4.0.0-py3-none-any.whl

Download URL chars_betterlogs-4.0.0-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
294ca711a8aad09401924b6f6d2592b801f8e72e5d9f38e0b112c4b528548540
BLAKE2b-256 checksum
How to use checksums
d16077f4c23486898bafed9baef8bdb0bc8251fffbf2c66d609997aea7a1764c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for chars-betterlogs 4.0.0

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