Skip to main content

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

This version
History Node

0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
reportlogging-0.0.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Dec 5, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page