src/Logger/src/Formatter/FluentdFormatter.php
public function format($event)
    {
        $event = $this->reachUpFirstNestedLevel($event);
        $event = $this->clearEmptyArrayInEvent($event);
        return json_encode($event);
    }
public function format($event)
    {
        $event = $this->reachUpFirstNestedLevel($event);
        $event = $this->clearEmptyArrayInEvent($event);
        return json_encode($event);
    }
public function format ( $ event ) { $ event = $ this -> reachUpFirstNestedLevel ( $ event ) ; $ event = $ this -> clearEmptyArrayInEvent ( $ event ) ; return json_encode ( $ event ) ; }
Formats data into a single line to be written by the writer.

@param array $event event data
@return string|array Either a formatted line to write to the log, or the
updated event information to provide to the writer.
Formats data into a single line to be written by the writer .