MediaWiki
1.28.0
|
Log message formatter that uses the apache Avro format. More...
Public Member Functions | |
__construct (array $schemas) | |
format (array $record) | |
Formats the record context into a binary string per the schema configured for the records channel. More... | |
formatBatch (array $records) | |
Format a set of records into a list of binary strings conforming to the configured schema. More... | |
getSchemaRevisionId ($channel) | |
Protected Member Functions | |
getSchema ($channel) | |
Protected Attributes | |
AvroIOBinaryEncoder | $encoder |
AvroStringIO | $io |
array | $schemas |
Map from schema name to schema definition. More... | |
AvroIODatumWriter | $writer |
Private Member Functions | |
encodeLong ($id) | |
convert an integer to a 64bits big endian long (Java compatible) NOTE: certainly only compatible with PHP 64bits More... | |
Log message formatter that uses the apache Avro format.
Definition at line 39 of file AvroFormatter.php.
MediaWiki\Logger\Monolog\AvroFormatter::__construct | ( | array | $schemas | ) |
Definition at line 69 of file AvroFormatter.php.
References MediaWiki\Logger\Monolog\AvroFormatter\$schemas, and writer.
|
private |
convert an integer to a 64bits big endian long (Java compatible) NOTE: certainly only compatible with PHP 64bits
int | $id |
Definition at line 169 of file AvroFormatter.php.
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\format().
MediaWiki\Logger\Monolog\AvroFormatter::format | ( | array | $record | ) |
Formats the record context into a binary string per the schema configured for the records channel.
array | $record |
Definition at line 84 of file AvroFormatter.php.
References $e, $revId, MediaWiki\Logger\Monolog\AvroFormatter\encodeLong(), AvroValidator\getErrors(), MediaWiki\Logger\Monolog\AvroFormatter\getSchema(), MediaWiki\Logger\Monolog\AvroFormatter\getSchemaRevisionId(), and writer.
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\formatBatch().
MediaWiki\Logger\Monolog\AvroFormatter::formatBatch | ( | array | $records | ) |
Format a set of records into a list of binary strings conforming to the configured schema.
array | $records |
Definition at line 110 of file AvroFormatter.php.
References as, and MediaWiki\Logger\Monolog\AvroFormatter\format().
|
protected |
Definition at line 127 of file AvroFormatter.php.
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\format().
MediaWiki\Logger\Monolog\AvroFormatter::getSchemaRevisionId | ( | $channel | ) |
Definition at line 156 of file AvroFormatter.php.
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\format().
|
protected |
Definition at line 57 of file AvroFormatter.php.
|
protected |
Definition at line 52 of file AvroFormatter.php.
|
protected |
Map from schema name to schema definition.
Definition at line 40 of file AvroFormatter.php.
Referenced by MediaWiki\Logger\Monolog\AvroFormatter\__construct().
|
protected |
Definition at line 62 of file AvroFormatter.php.