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.2.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.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for trainerlog-0.4.2.tar.gz
Algorithm Hash digest
SHA256 3da5f9fe2074da9340b77fd14842b7c08c477b06934cc54c1bff50e068d9b5a4
MD5 18519bde8e8dcc249c7ca1adc314399f
BLAKE2b-256 84a624615d4048c2dbcae162a82f4a9132ca352b6daff30423f2bc88a3956abc

See more details on using hashes here.

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

Hashes for trainerlog-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7cc853894fa1a1391b4d4bfc8a186a14767ae9f3e15d58a34b137531f8b62ba5
MD5 406a419c459992fb40e59a46803c580e
BLAKE2b-256 d6c6445b693a3115bd752efecf13818b1afa9fe2ad07a263da10ac486f173eaa

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