public function getLine(int $level, string $msg, $data = null)
    {
        if (is_callable($this->lineFormat)) {
            $line = $this->lineFormat;
            return $line($level, $msg, $data);
        }

        return $this->formatLine($level, $msg);
    }
public function getLine(int $level, string $msg, $data = null)
    {
        if (is_callable($this->lineFormat)) {
            $line = $this->lineFormat;
            return $line($level, $msg, $data);
        }

        return $this->formatLine($level, $msg);
    }
@param int    $level
@param string $msg
@param null   $data

@return string