$levelTag
$levelTag : boolean
Class FluentdFormatter
Serializes a log message to Fluentd unix socket protocol
Fluentd config:
Monolog setup:
$logger = new Monolog\Logger('fluent.tag'); $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock'); $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter()); $logger->pushHandler($fluentHandler);