Ben Chuanlong Du's Blog

It is never too late to learn.

Hands on the tqdm Module in Python

Simple Use Case

The usage of the tqdm module is really simple. All you need is to import the tqdm function from the tqdm module, and then wrap the function tqdm over the iterable object that you want iterate over. This is really convenient if you have a long running task and want to report the progress of the task.

Ensure Capturing Log of Applications

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Logging is critical for debugging applications. For production applications, it is best to send log information into a file instead of the standard output so that the log information is persisted …

General Tips on Logging

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Many logging libraries support sending logs as emails or as attachments of emails. As a poor man's way of subscribing to errors and warnings (if there's no engineering teams support parsing …