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 | RSS feed

This version

0.0

Download files

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

Files for reportlogging, version 0.0
Filename, size File type Python version Upload date Hashes
Filename, size reportlogging-0.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page