0 purchases
reportlogging 0.0
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"
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.