Skip to main content

_msg Library Logging

Project description

_msg, pronounced ‘you-message’, is a module level logging utility intended for libraries, which works just as well for normal logging scenarios. The package name replaces the ‘_’ with a ‘u’ to conform with PEP8 standards.

Installation

pip install umsg

Usage

Class Logging Made Easy

from umsg import LoggingMixin

class MyClass(LoggingMixin):
    def __init__(self):
        super().__init__(prefix='MyClass')
        self.log('Logging initiated', level='debug')

Basic Module / Script Logging Too

import logging
import umsg

umsg.add_handler(logging.StreamHandler())
umsg.log('Good here')

Documentation

Detailed documentation is available on readthedocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

umsg-1.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file umsg-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: umsg-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for umsg-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 66f51a8b9ae2b4cec8a7f7ad26121640b75fb2423aff7c2f460dc0fdf17f0705
MD5 5e261022ef6152993a492bc2feac5f72
BLAKE2b-256 6bcae02a744119d0f3ba947f5244790baf1190b2dfc8e8009a6e001704fb96d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page