Manual
Console and logging
Styled terminal output and a PSR-3 logger on top of it.
Introduction#
Console writes styled, width-aware terminal output (columns, padding, colour) without blocking the other coroutines while the terminal catches up. ConsoleLogger is a PSR-3 LoggerInterface built on it, for application code that logs through the standard interface rather than calling Console directly.
Examples#
- All examples of this topic – 3 with their output.
Reference#
Console– Terminal output from markup: styled on a terminal, plain text when piped to a file, and laid out the same way in both.ConsoleLogger– A PSR-3 logger writing Console::log() lines: to a terminal styled, piped plain.