Skip to main content

Make practical Python logging easy (and developers happy!)

Project description

happy-python-logging

Make practical Python logging easy.

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install happy-python-logging

Usage

For library developers

getLoggerForLibrary()

happy_python_logging.getLoggerForLibrary()

-import logging
+from happy_python_logging import getLoggerForLibrary

-logger = logging.getLogger(__name__)
-logger.addHandler(logging.NullHandler())
+logger = getLoggerForLibrary(__name__)

See example for detail.

OrFilter

happy_python_logging.lib.filters.OrFilter

import logging

from happy_python_logging.lib.filters import OrFilter

root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
stream_handler = logging.StreamHandler()
stream_handler.addFilter(OrFilter("libA", "libB"))
root_logger.addHandler(stream_handler)
DEBUG | libA:libA_awesome:8 - awesome
DEBUG | libB:libB_fabulous:12 - fabulous

License

happy-python-logging is distributed under the terms of the MIT license.

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

happy_python_logging-0.0.7.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

happy_python_logging-0.0.7-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file happy_python_logging-0.0.7.tar.gz.

File metadata

  • Download URL: happy_python_logging-0.0.7.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for happy_python_logging-0.0.7.tar.gz
Algorithm Hash digest
SHA256 26b13d7cb72f48da3839f2a847d37825e920036be83b87ec265cc2d0b6b702db
MD5 6caebf1924c322921a4e45602f865d39
BLAKE2b-256 69ebe0964f1ecd0da3d7a75c2863a4bdc801f657b0c4663de0a3f8e19721fe5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for happy_python_logging-0.0.7.tar.gz:

Publisher: publish.yml on ftnext/happy-python-logging

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file happy_python_logging-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for happy_python_logging-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb05b62e8894f226c30974830a3ee61c270e460fe61fd18869507843edfbd21
MD5 9a86318cc21753a103c608f1cb9a58bb
BLAKE2b-256 f54b77db0d3d12fef03b820dd1159572ac61ffaac1fab43b247d062c01f7faa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for happy_python_logging-0.0.7-py3-none-any.whl:

Publisher: publish.yml on ftnext/happy-python-logging

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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