Nice colorful log with TRAIN level too
Project description
trainlog
Nice colorful logging module, which also includes an extra level TRAIN for model train etc.
from trainerlog import get_logger
logger = get_logger(name="ebun", level="DEBUG")
logger.train("Training step complete")
logger.debug("this is just a debug message")
logger.info("This is supposed to be more important")
logger.warning("Somethings maybe not right")
logger.error("Something went wrong")
logger.critical("Something went very wrong")
The loglevel can be set via the argument, or by setting the LOGLEVEL environment variable to INFO, DEBUG etc.
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
trainerlog-0.4.2.tar.gz
(1.6 kB
view details)
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 trainerlog-0.4.2.tar.gz.
File metadata
- Download URL: trainerlog-0.4.2.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.12 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3da5f9fe2074da9340b77fd14842b7c08c477b06934cc54c1bff50e068d9b5a4
|
|
| MD5 |
18519bde8e8dcc249c7ca1adc314399f
|
|
| BLAKE2b-256 |
84a624615d4048c2dbcae162a82f4a9132ca352b6daff30423f2bc88a3956abc
|
File details
Details for the file trainerlog-0.4.2-py3-none-any.whl.
File metadata
- Download URL: trainerlog-0.4.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.12 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc853894fa1a1391b4d4bfc8a186a14767ae9f3e15d58a34b137531f8b62ba5
|
|
| MD5 |
406a419c459992fb40e59a46803c580e
|
|
| BLAKE2b-256 |
d6c6445b693a3115bd752efecf13818b1afa9fe2ad07a263da10ac486f173eaa
|