Log21

Latest version: v2.10.2

Safety actively analyzes 714815 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 12

2.3.0

Added progressbar custom formatting.

Now you can use your own formatting for the progressbar instead of the default one.

Let's see an example:

python
We import the ProgressBar class from log21
from log21 import ProgressBar
psutil is a module that can be used to get the current memory usage or cpu usage of your system
If you want to try this example, you need to install psutil: pip install psutil
import psutil
We use the time module to make a delay between the progressbar updates
import time

cpu_bar = ProgressBar(format_='CPU Usage: {prefix}{bar}{suffix} {percentage}%', style='{', new_line_when_complete=False)

while True:
cpu_bar.update(psutil.cpu_percent(), 100)
time.sleep(0.1)

2.2.0

Added CrashReporter!

You can use Reporter classes to monitor your program and send crash reports to the developer. It can help you fix the
bugs and improve your program before your users get upset about it. See some examples in
the [log21/CrashReporter/Reporters.py](https://github.com/MPCodeWriter21/log21/blob/master/log21/CrashReporter/Reporters.py)
file.

2.1.46

Bug fixes.

2.1.8

Bug fixes.

2.1.7

Added `getpass` method to `log21.Logger` class and added `log21.getpass` function.

2.1.3

Added log21.input function.

Page 8 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.