reportlogging 0.0

Creator: bradpython12

Last updated:

0 purchases

reportlogging 0.0 Image
reportlogging 0.0 Images

Languages

Categories

Add to Cart

Description:

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"

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.