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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page