That is simple logger library, that can manage logs dir.
Project description
cx-logger
That is really easy to use automatic logger. To start using it in app just install it.
pip install cx-logger
When library had been installed, import it. All code snippets above would use that import.
import cx_logger as logger
How create log directory? That is really simple, just type.
import cx_logger as logger
import pathlib
manager = logger.logs_manager(pathlib.Path("./logs"))
logging = manager.get_logger(logger.sync_logger)
logging.use_handler(logger.stderr_handler())
logging.info("That is only info.")
logging.warning("Oh, that's warning!!!")
After that operation You would see something like that in stderr.
[info] 2025-10-23 14:12:12 That is only info.
[warning] 2025-10-23 14:12:12 Oh, that's warning!!!
Directory ./logs would be created if not already exists, and in it You would see somethind like "2025-10-23-1.log". When You run script twice, then second file would be named like "2025-10-23-2.log".
More info
- See in the wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cx_logger-2025.10.23.post2.tar.gz.
File metadata
- Download URL: cx_logger-2025.10.23.post2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c607bfbb8153bca9b42168032b391d1c032303a7dc55ad783570eb0e1f51de5
|
|
| MD5 |
c6ea0a387acf4afe5985d67d5ffc58f8
|
|
| BLAKE2b-256 |
52950a540b2c25412e4fecc3ca404f9361b8c27b4c447c7c4c1a874db773bb31
|
File details
Details for the file cx_logger-2025.10.23.post2-py3-none-any.whl.
File metadata
- Download URL: cx_logger-2025.10.23.post2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82e966dc272e455e534af70428c0d2dfc0b923eeb8d58428a27d2e6fb0263c7d
|
|
| MD5 |
18e7ed889ef3b0c5205b25316e3e3bc3
|
|
| BLAKE2b-256 |
55a11ba10d85b9d9f769597f24c02f1ad91c49ddd454255c0312fa773b1034f9
|