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.

Source Distribution

reportlogging-0.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page