ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class FluentdFormatter. More...
Public Member Functions | |
__construct ($levelTag=false) | |
isUsingLevelsInTag () | |
format (array $record) | |
Formats a log record. More... | |
formatBatch (array $records) | |
Formats a set of log records. More... | |
Protected Attributes | |
$levelTag = false | |
Class FluentdFormatter.
Serializes a log message to Fluentd unix socket protocol
Fluentd config:
<source> type unix path /var/run/td-agent/td-agent.sock </source>
Monolog setup:
$logger = new Monolog('fluent.tag'); $fluentHandler = new Monolog('unix:///var/run/td-agent/td-agent.sock'); $fluentHandler->setFormatter(new Monolog()); $logger->pushHandler($fluentHandler);
Definition at line 35 of file FluentdFormatter.php.
Monolog\Formatter\FluentdFormatter::__construct | ( | $levelTag = false | ) |
Definition at line 42 of file FluentdFormatter.php.
References Monolog\Formatter\FluentdFormatter\$levelTag.
Monolog\Formatter\FluentdFormatter::format | ( | array | $record | ) |
Formats a log record.
array | $record | A record to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 56 of file FluentdFormatter.php.
References array.
Referenced by Monolog\Formatter\FluentdFormatter\formatBatch().
Monolog\Formatter\FluentdFormatter::formatBatch | ( | array | $records | ) |
Formats a set of log records.
array | $records | A set of records to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 76 of file FluentdFormatter.php.
References Monolog\Formatter\FluentdFormatter\format().
Monolog\Formatter\FluentdFormatter::isUsingLevelsInTag | ( | ) |
Definition at line 51 of file FluentdFormatter.php.
References Monolog\Formatter\FluentdFormatter\$levelTag.
|
protected |
Definition at line 40 of file FluentdFormatter.php.
Referenced by Monolog\Formatter\FluentdFormatter\__construct(), and Monolog\Formatter\FluentdFormatter\isUsingLevelsInTag().