{"repo":"Dragon2fly/logger_tt","free":true,"listed":false,"github":"https://github.com/Dragon2fly/logger_tt","clone":"git clone https://github.com/Dragon2fly/logger_tt.git","description":"Logging makes simple. Log even the exception that you forgot to catch. Log messages from your print(msg). Support multiprocessing logging too.","language":"Python","stars":42,"topics":["log","logging","logger","traceback","exception","multiprocessing-logging","telegram-logger"],"license":"MIT","category":"analytics","readme_excerpt":"Logger tt Make configuring logging simpler and log even exceptions that you forgot to catch. Even multiprocessing logging becomes a breeze. Table of contents Install Overview Usage Overwrite the default log path Provide your config file Capture stdout Exception logging try-except exception logging Silent unwanted loggers Logging in multiprocessing Basic Central logging server Temporary disable logging Limit traceback line length Analyze raise exception line StreamHandler with buffer TelegramHandler Message format styles Sample config YAML format JSON format Changelog Install From PYPI: pip install -U logger tt From Github: 1. Download a wheel file from: https://github.com/Dragon2fly/logger tt/releases 2. Open a console and execute: pip install dowloaded file name.whl Overview: In the most simple case, add the following code into your main python script of your project: Then from any of your modules, you just need to get a logger and start logging. There are two ways that you could obtain a logger. Conventional way : as you have always done it that way Convenient way : use a pre-made logger named logger tt from this package. After that, you start logging as usual: Both ways give you the same output except the line number, obviously. The pre-made logger also has an advantage that it will automatically inject threadName and processName to the output in case of multithreading or multiprocessing. Both ways will provide your project with the following default log behaviors: log fil","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dragon2fly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dragon2fly/logger_tt/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."}