8000 [GelfFormatter] Missing boolean values · Issue #1972 · Seldaek/monolog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[GelfFormatter] Missing boolean values #1972
Open
@am4rth

Description

@am4rth

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:
Image

Therefore bool values should be converted before adding them to the Gelf Message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0