\Monolog\FormatterElasticsearchFormatter

Format a log message into an Elasticsearch record

Summary

Methods
Properties
Constants
__construct()
format()
getIndex()
getType()
No public properties found
No constants found
getDocument()
$index
$type
N/A
No private methods found
No private properties found
N/A

Properties

$index

$index : string

Type

string — Elasticsearch index name

$type

$type : string

Type

string — Elasticsearch record type

Methods

__construct()

__construct(string  $index, string  $type) 

Parameters

string $index

Elasticsearch index name

string $type

Elasticsearch record type

format()

format(array  $record) 

{@inheritdoc}

Parameters

array $record

getIndex()

getIndex() : string

Getter index

Returns

string

getType()

getType() : string

Getter type

Returns

string

getDocument()

getDocument(array  $record) : array

Convert a log message into an Elasticsearch record

Parameters

array $record

Log message

Returns

array