ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Serializes a log message to Logstash Event Format. More...
Public Member Functions | ||||
__construct ($applicationName, $systemName=null, $extraPrefix=null, $contextPrefix='ctxt_', $version=self::V0) | ||||
format (array $record) | ||||
{Formats a log record.
| ||||
Public Member Functions inherited from Monolog\Formatter\NormalizerFormatter | ||||
__construct ($dateFormat=null) | ||||
format (array $record) | ||||
{Formats a log record.
| ||||
formatBatch (array $records) | ||||
{Formats a set of log records.
| ||||
detectAndCleanUtf8 (&$data) | ||||
Detect invalid UTF-8 string characters and convert to valid UTF-8. More... | ||||
Data Fields | |
const | V0 = 0 |
const | V1 = 1 |
Data Fields inherited from Monolog\Formatter\NormalizerFormatter | |
const | SIMPLE_DATE = "Y-m-d H:i:s" |
Protected Member Functions | |
formatV0 (array $record) | |
formatV1 (array $record) | |
Protected Member Functions inherited from Monolog\Formatter\NormalizerFormatter | |
normalize ($data) | |
normalizeException ($e) | |
toJson ($data, $ignoreErrors=false) | |
Return the JSON representation of a value. More... | |
Protected Attributes | |
$systemName | |
$applicationName | |
$extraPrefix | |
$contextPrefix | |
$version | |
Protected Attributes inherited from Monolog\Formatter\NormalizerFormatter | |
$dateFormat | |
Serializes a log message to Logstash Event Format.
Definition at line 22 of file LogstashFormatter.php.
Monolog\Formatter\LogstashFormatter::__construct | ( | $applicationName, | |
$systemName = null , |
|||
$extraPrefix = null , |
|||
$contextPrefix = 'ctxt_' , |
|||
$version = self::V0 |
|||
) |
string | $applicationName | the application that sends the data, used as the "type" field of logstash |
string | $systemName | the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine |
string | $extraPrefix | prefix for extra keys inside logstash "fields" |
string | $contextPrefix | prefix for context keys inside logstash "fields", defaults to ctxt_ |
int | $version | the logstash format version to use, defaults to 0 |
Definition at line 59 of file LogstashFormatter.php.
References Monolog\Formatter\LogstashFormatter\$applicationName, Monolog\Formatter\LogstashFormatter\$contextPrefix, Monolog\Formatter\LogstashFormatter\$extraPrefix, Monolog\Formatter\LogstashFormatter\$systemName, and Monolog\Formatter\LogstashFormatter\$version.
Monolog\Formatter\LogstashFormatter::format | ( | array | $record | ) |
{Formats a log record.
array | $record | A record to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 74 of file LogstashFormatter.php.
References format, Monolog\Formatter\LogstashFormatter\formatV0(), Monolog\Formatter\LogstashFormatter\formatV1(), and Monolog\Formatter\NormalizerFormatter\toJson().
|
protected |
Definition at line 87 of file LogstashFormatter.php.
References Monolog\Formatter\LogstashFormatter\$applicationName, and array.
Referenced by Monolog\Formatter\LogstashFormatter\format().
|
protected |
Definition at line 130 of file LogstashFormatter.php.
References Monolog\Formatter\LogstashFormatter\$applicationName, and array.
Referenced by Monolog\Formatter\LogstashFormatter\format().
|
protected |
Definition at line 35 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatter\__construct(), Monolog\Formatter\LogstashFormatter\formatV0(), and Monolog\Formatter\LogstashFormatter\formatV1().
|
protected |
Definition at line 45 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatter\__construct().
|
protected |
Definition at line 40 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatter\__construct().
|
protected |
Definition at line 30 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatter\__construct().
|
protected |
Definition at line 50 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatter\__construct().
const Monolog\Formatter\LogstashFormatter::V0 = 0 |
Definition at line 24 of file LogstashFormatter.php.
const Monolog\Formatter\LogstashFormatter::V1 = 1 |
Definition at line 25 of file LogstashFormatter.php.
Referenced by Monolog\Formatter\LogstashFormatterTest\testDefaultFormatterV1(), Monolog\Formatter\LogstashFormatterTest\testFormatWithApplicationNameV1(), Monolog\Formatter\LogstashFormatterTest\testFormatWithContextV1(), Monolog\Formatter\LogstashFormatterTest\testFormatWithExtraV1(), and Monolog\Formatter\LogstashFormatterTest\testFormatWithFileAndLineV1().