Getting Started

About

The umsg package is intended as an aid for library logging with some enhancements upon Python’s native logging library. The name derives from a universally named function, _msg(), I’ve used across projects and languages historically. The underscore was changed to a u to make the name PEP8 compliant, and the preferred pronunciation is ‘you message’ or (ju ˈmɛsəʤ) in IPA.

Installation

pip3 install umsg

Requirements

umsg is designed to work with Python 3.5 and higher. The package has been tested against the following interpreters

Usage

umsg works “out of the box”, without any configuration.

import umsg

umsg.log('hello logging')

However, because it is intended for libraries, you may find it more useful to set a handler other than the default NullHandler.

import logging
import umsg

umsg.add_handler(logging.StreamHandler())
umsg.log('send me to stdout!')

GitHub Source

The source code for umsg is availble on GitHub repository.

Individual release archives may be found here.

Author

umsg is written and maintained by R.A. Stern.

License

umsg is distributed under the GNU Lesser General Public License software license, which may also be obtained from the GNU project, https://www.gnu.org/.