The console component of the Salient toolkit
salient/console
provides terminal output and message logging via an API
similar to console
in web browsers.
- Familiar methods like Console::log() and Console::error()
- Variants like Console::logOnce() and Console::errorOnce() to output messages once per run
- Output to multiple targets
- Messages filtered by log level
- Formatting that reflects message priority and improves readability
- Optional Markdown-like syntax for additional formatting
- Colour output to TTYs
- PSR-3 (Logger Interface) support via Console::logger()
API documentation for salient/console
tracks the main
branch of
the toolkit's GitHub repository, where further documentation can also
be found.