Open
Description
Monolog version: 3
The GELF Payload Specification does not support bool
values as a addtional field. See https://go2docs.graylog.org/current/getting_in_log_data/gelf.html#GELFPayloadSpecification
If a bool
value is provided Graylog will simply drop it.
Given the following example code
$this->logger->info("debug logger", [
'int' => 113,
'float' => 23.23,
'trueBool' => true,
'falseBool' => false,
'object' => (object) [],
'array' => ['some' => 'array'],
]);
will result in this log in Graylog:
Therefore bool values should be converted before adding them to the Gelf Message.