Skip to main content

A tiny Python logger with colorful ANSI terminal output.

Project description

tinycolorlog

A tiny, zero-dependency Python logger with colorful ANSI terminal output.

Installation

pip install tinycolorlog

Usage

from tinycolorlog import logger

logger.info("Server started on port 8080")
logger.success("Database connection established")
logger.error("Failed to read configuration file")

Output

Each method prints a bold, colored prefix followed by your message:

Method Color Prefix
logger.info() 🔵 Blue [INFO]
logger.success() 🟢 Green [SUCCESS]
logger.error() 🔴 Red [ERROR]

API Reference

logger.info(message: str)

Prints an informational message in blue.

logger.success(message: str)

Prints a success message in green.

logger.error(message: str)

Prints an error message in red.

Advanced: Custom Instance

You can also instantiate TinyLogger directly if you prefer:

from tinycolorlog.handler import TinyLogger

my_logger = TinyLogger()
my_logger.success("Custom logger instance works too!")

License

MIT — see LICENSE for details.

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

tinycolorlog-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

tinycolorlog-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tinycolorlog-0.1.0.tar.gz.

File metadata

  • Download URL: tinycolorlog-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tinycolorlog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84a76d5917959a80fb05514f25a69225e9976211ce0791e31273d00d046df33a
MD5 e4c307133d71734879ea197753993d19
BLAKE2b-256 ec98a96960941a001d541bd726e42ab88ac33216be53e9d77baddd4107d01ddf

See more details on using hashes here.

File details

Details for the file tinycolorlog-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tinycolorlog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tinycolorlog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a55043b74ba17d89bdd9540b965cc3593b5017040242c93e40465afa32da25e
MD5 4ae569a389ceea0b7ece5db8b092f840
BLAKE2b-256 c7b35fc2791343d216cb686a5b88a8ce156c9367d194494d79a81f0cba073bb0

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