method parse documentation in bbn\Parsers\Apache

function($st) { $num = 0; $res = []; $errs = []; $lines = explode(PHP_EOL, $st, self::$parse_limit); $err = false; foreach ($lines as $ln) { if ($parsed = self::parseLine($ln)) { if (isset($parsed['error'])) { if ($err) { $res[] = $err; } $err = $parsed; } elseif (isset($parsed['action'])) { if (!$err) { continue; //throw new \Exception(X::_("A trace is starting so an error should exist")); } if (!isset($err['trace'])) { $err['trace'] = []; } $err['trace'][] = $parsed; } else { if ($err) { $res[] = $err; $err = false; } $errs[] = $ln; $num++; //throw new \Exception(X::_("Impossible to parse log string")." $ln"); } } } if ($err) { $res[] = $err; } //die(X::dump($errs)); return $res; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.