Log message formatter that uses the apache Avro format.
More...
|
| __construct (array $schemas) |
|
| format (array $record) |
| Formats the record context into a binary string per the schema configured for the records channel.
|
|
| formatBatch (array $records) |
| Format a set of records into a list of binary strings conforming to the configured schema.
|
|
| getSchemaRevisionId ( $channel) |
| Get the writer for the named channel.
|
|
|
| getSchema ( $channel) |
| Get the writer for the named channel.
|
|
|
| encodeLong ( $id) |
| convert an integer to a 64bits big endian long (Java compatible) NOTE: certainly only compatible with PHP 64bits
|
|
Log message formatter that uses the apache Avro format.
- Since
- 1.26
- Author
- Erik Bernhardson ebern.nosp@m.hard.nosp@m.son@w.nosp@m.ikim.nosp@m.edia..nosp@m.org
- Note
- © 2015 Erik Bernhardson and Wikimedia Foundation.
Definition at line 38 of file AvroFormatter.php.
◆ __construct()
MediaWiki\Logger\Monolog\AvroFormatter::__construct |
( |
array | $schemas | ) |
|
◆ encodeLong()
MediaWiki\Logger\Monolog\AvroFormatter::encodeLong |
( |
| $id | ) |
|
|
private |
◆ format()
MediaWiki\Logger\Monolog\AvroFormatter::format |
( |
array | $record | ) |
|
◆ formatBatch()
MediaWiki\Logger\Monolog\AvroFormatter::formatBatch |
( |
array | $records | ) |
|
Format a set of records into a list of binary strings conforming to the configured schema.
- Parameters
-
- Returns
- string[]
Definition at line 109 of file AvroFormatter.php.
References $result, and format.
◆ getSchema()
MediaWiki\Logger\Monolog\AvroFormatter::getSchema |
( |
| $channel | ) |
|
|
protected |
◆ getSchemaRevisionId()
MediaWiki\Logger\Monolog\AvroFormatter::getSchemaRevisionId |
( |
| $channel | ) |
|
◆ $encoder
AvroIOBinaryEncoder MediaWiki\Logger\Monolog\AvroFormatter::$encoder |
|
protected |
◆ $io
AvroStringIO MediaWiki\Logger\Monolog\AvroFormatter::$io |
|
protected |
◆ $schemas
array MediaWiki\Logger\Monolog\AvroFormatter::$schemas |
|
protected |
◆ $writer
AvroIODatumWriter MediaWiki\Logger\Monolog\AvroFormatter::$writer |
|
protected |
The documentation for this class was generated from the following file: