Skip to content

EmojiTextStreamSink

AnsiTextStreamSink with an emoji prefix per level, for local dev consoles where a quick visual scan matters more than a clean tail | grep.

Not meant for anything that parses log output — use TextStreamSink/FileSink/ JsonStdoutSink for that. 🔍 2026-07-01T08:02:55.123Z DEBUG … ⚠️ 2026-07-01T08:02:55.123Z WARNING … 🔥 2026-07-01T08:02:55.123Z ERROR …

final class EmojiTextStreamSink extends AnsiTextStreamSink

ExtendsAnsiTextStreamSink
SourceLogging/Sink/EmojiTextStreamSink.php

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
emit()AbstractStreamSinkRenders the event through the subclass EmojiTextStreamSink::format() and writes it as one newline-terminated line.
flush()AbstractStreamSinkFlushes the underlying stream if one has been opened.
isEnabled()AbstractStreamSinkWhether this sink accepts an event at $level for $category.