{"repo":"josheppinette/python-logfmter","free":true,"listed":false,"github":"https://github.com/josheppinette/python-logfmter","clone":"git clone https://github.com/josheppinette/python-logfmter.git","description":"Add logfmt structured logging using the stdlib logging module and without changing a single log call.","language":"Python","stars":107,"topics":["python","logfmt","logging","structured","log","python-3","structured-logging"],"license":"MIT","category":"analytics","readme_excerpt":"Add logfmt structured logging using the stdlib logging module and without changing a single log call. Table of Contents 1. Why 2. Install 3. Usage 1. Integration 2. Configuration 3. Extension 4. Guides 5. Gotchas 4. Development 1. Required Software 2. Getting Started 3. Contributing 4. Publishing Why - enables both human and computer readable logs, recommended as a \"best practice\" by Splunk - formats all first and third party logs, you never have to worry about a library using a different logging format - simple to integrate into any existing application, requires no changes to existing log statements i.e. structlog Install Usage This package exposes a single Logfmter class that can be integrated into the standard library logging system like any logging.Formatter . Integration Simply use the standard logger's basicConfig or dictConfig initialization systems to get started. Examples are provided below. basicConfig dictConfig If you are using dictConfig , you need to consider your setting of disable existing loggers . It is enabled by default, and causes any third party module loggers to be disabled. Notice, you can configure the Logfmter by providing keyword arguments as dictionary items after \"()\" : fileConfig Using logfmter via fileConfig is not supported, because fileConfig does not support custom formatter initialization. There may be some hacks to make this work in the future. Let me know if you have ideas or really need this. Configuration There is no additional configur","default_branch":null,"files":null,"tree":[],"storefront":"/r/josheppinette","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/josheppinette/python-logfmter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}