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.get_attr('logger').setHandler(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.

Files for umsg, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size umsg-1.0.1-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page