Skip to main content
https://travis-ci.org/cjrh/perflog.svg?branch=master https://coveralls.io/repos/github/cjrh/perflog/badge.svg?branch=master https://img.shields.io/pypi/pyversions/perflog.svg https://img.shields.io/github/tag/cjrh/perflog.svg https://img.shields.io/badge/install-pip%20install%20perflog-ff69b4.svg https://img.shields.io/pypi/v/perflog.svg

perflog

Structured logging support for application performance and monitoring data

Demo

""" My Application """

import perflog

def main():
    <All the usual application code goes here>


if __name__ == '__main__':
    perflog.set_and_forget()
    main()

There are several parameters for the set_and_forget method that can be used to change the default behaviour. For example, by default the performance log messages will be written every 60 seconds.

Note: in addition to writing performance data to the log message itself, perflog also adds extra logrecord fields. This means that if you’re using a log formatter that writes out all the fields in some kind of structured format (say, logstash_formatter), you will find that the performance data will also be recorded in those fields and can therefore be accessed in tools like Kibana.

Acknowledgements

perflog uses psutil to obtain all the process-related information. Thanks Giampaolo!

Metadata

Release files for perflog 2017.8.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for perflog 2017.8.7
File Interpreter ABI Platform
perflog-2017.8.7-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / perflog-2017.8.7-py2.py3-none-any.whl

Download URL perflog-2017.8.7-py2.py3-none-any.whl
Size 18.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
88e45f8246a221865bc39864654b3cd2fd1f2d6522afef10afeb40944342e202
BLAKE2b-256 checksum
How to use checksums
145f851bde5b9c746201975814568657886421b61cb19ed10f24ea3029931389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for perflog 2017.8.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page