The umsg package is intended as an aid for library logging with some enhancements upon Python's native :py:mod:`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.
pip3 install umsg
umsg is designed to work with Python 3.5 and higher. The package has been tested against the following interpreters
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 :py:class:`~logging.NullHandler`.
import logging
import umsg
umsg.add_handler(logging.StreamHandler())
umsg.log('send me to stdout!')
The source code for umsg is availble on GitHub repository.
Individual release archives may be found here.
umsg is written and maintained by R.A. Stern.
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/.