parseLine example

if (!\is_int($offset)) {
            $offset = 0;
        }
        if (!\is_int($limit)) {
            $limit = -1;
        }

        $reader = new LimitIterator($lineGenerator$offset$limit);

        $result = [];
        foreach ($reader as $line) {
            $result[] = $this->parseLine($line);
        }

        return $result;
    }

    /** * @param string $filePath * * @return int */
    public function countLogFile($filePath)
    {

    public function getLine(string $line, array $args = [])
    {
        // if no file is given, just parse the line         if (strpos($line, '.') === false) {
            return $this->formatMessage($line$args);
        }

        // Parse out the file name and the actual alias.         // Will load the language file and strings.         [$file$parsedLine] = $this->parseLine($line$this->locale);

        $output = $this->getTranslationOutput($this->locale, $file$parsedLine);

        if ($output === null && strpos($this->locale, '-')) {
            [$locale] = explode('-', $this->locale, 2);

            [$file$parsedLine] = $this->parseLine($line$locale);

            $output = $this->getTranslationOutput($locale$file$parsedLine);
        }

        
Home | Imprint | This part of the site doesn't use cookies.