{"repo":"metwork-framework/mflog","free":true,"listed":false,"github":"https://github.com/metwork-framework/mflog","clone":"git clone https://github.com/metwork-framework/mflog.git","description":"opinionated python (structured) logging library built on structlog","language":"Python","stars":14,"topics":["logging","structlog","library","python3","python2","autoreadme","integration-level-3","github-actions"],"license":"BSD-3-Clause","category":"analytics","readme_excerpt":"mflog [//]: # (automatically generated from https://github.com/metwork-framework/github organization management/blob/master/common files/README.md) Status (master branch) What is it ? It is an opinionated python (structured) logging library built on structlog for the MetWork Framework (but it can be used in any context). Structured logging means that you don’t write hard-to-parse and hard-to-keep-consistent prose in your logs but that you log events that happen in a context instead. - https://www.structlog.org/en/stable/why.html Example: On stderr , you will get: On json output file , you will get: If the python/rich library is installed (this is not a mandatory requirement) and if the output is a real terminal (and not a redirection or a pipe), the library will automatically configure a fancy color output (of course you can disable it if you don't like): With following demo python program: You will get this color ouput: (opinionated) Choices and Features - we use main ideas from structlog library - we log [DEBUG] and [INFO] messages on stdout (in a human friendly way) - we log [WARNING] , [ERROR] and [CRITICAL] on stderr (in a human friendly way) - (and optionally) we log all messages (worse than a minimal configurable level) in a configurable file in JSON (for easy automatic parsing) - (and optionally) we send all messages (worse than a minimal configurable level) to an UDP syslog server (in JSON or in plain text) - we can configure a global minimal level to ignore all mess","default_branch":null,"files":null,"tree":[],"storefront":"/r/metwork-framework","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/metwork-framework/mflog/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."}