logging interface for report messages
Project description
temporary logging data store, inmemory.
how to use
in application code
from reportlogging import manager
import logging
logger = logging.getLogger(__name__)
report_logger = manager.getlogger(logger)
def do_something():
report_logger("report info: %s", data)
in batch script
def main():
from reportlogging import manager
manager.activate(logging.DEBUG, format="%(message)s")
do_something()
manager.getvalue() # => "report info: xxxx"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reportlogging-0.0.tar.gz
(2.7 kB
view hashes)