public function format(array $record): string
    {
        if (!empty($this->hostname)) {
            $record["hostname"] = $this->hostname;
        }
        if (!empty($this->appname)) {
            $record["appname"] = $this->appname;
        }

        $record["@marker"] = static::MARKERS;

        return parent::format($record);
    }
public function format(array $record): string
    {
        if (!empty($this->hostname)) {
            $record["hostname"] = $this->hostname;
        }
        if (!empty($this->appname)) {
            $record["appname"] = $this->appname;
        }

        $record["@marker"] = static::MARKERS;

        return parent::format($record);
    }
public function format ( array $ record ) : string { if ( ! empty ( $ this -> hostname ) ) { $ record [ "hostname" ] = $ this -> hostname ; } if ( ! empty ( $ this -> appname ) ) { $ record [ "appname" ] = $ this -> appname ; } $ record [ "@marker" ] = static :: MARKERS ; return parent :: format ( $ record ) ; }
Appends the 'hostname' and 'appname' parameter for indexing by Logmatic.

@see http://doc.logmatic.io/docs/basics-to-send-data
@see \Monolog\Formatter\JsonFormatter::format()
Appends the hostname and appname parameter for indexing by Logmatic .