Skip to main content

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


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.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trainerlog-0.4.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file trainerlog-0.4.1.tar.gz.

File metadata

  • Download URL: trainerlog-0.4.1.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

Hashes for trainerlog-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d230e0ba290c0b5b2a1e3214ee1c2cb9203a9b07a21d0ed954c611c2a12da367
MD5 3c374a8456b054433a1e849150881041
BLAKE2b-256 4dc203d319b8f1defb45f4a6a7ebadeab8abef9a7c1151b7bcaf70da86132a76

See more details on using hashes here.

File details

Details for the file trainerlog-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: trainerlog-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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

Hashes for trainerlog-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 213ae7e3ce941b9847be5073884dc271c5ea985c0241ec6de8b88318d2c2d2d6
MD5 bcdf7c231924d463004bee53b7344b0b
BLAKE2b-256 59ed8bf1a5a09b85d56775b794fea3a5773de36bcc4bbe612417dca099962108

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page