Monolog\Formatter\LogstashFormatter::__construct
Signature
public function __construct(string
$applicationName,
[string
$systemName = null,
[string
$extraPrefix = null,
[string
$contextPrefix = 'ctxt_']]] )
Parameters
$applicationName
—
string
- the application that sends the data, used as the "type" field of logstash
$systemName
—
string
- the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine
$extraPrefix
—
string
- prefix for extra keys inside logstash "fields"
$contextPrefix
—
string
- prefix for context keys inside logstash "fields", defaults to ctxt_