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 details)

Uploaded Source

File details

Details for the file reportlogging-0.0.tar.gz.

File metadata

  • Download URL: reportlogging-0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for reportlogging-0.0.tar.gz
Algorithm Hash digest
SHA256 f6ac15578c281864d78bddf5a2d5efaac59c7af28893971a08aafa82e9e4d18e
MD5 242a133495a33df13e15890a22e0260b
BLAKE2b-256 bf3858262379d54426e20df23c48e017fa8e1049bfbccd75c52de6614d2cc4f2

See more details on using hashes here.

Supported by

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