log.class.php 1

Element Line Description
\log::get() 248 v4.4 => removed in v4.6 (use log::getDelta() instead) Note that log::get($_log, $_begin, $_nbLines) is equivalent to: $path = (!file_exists($_log) || !is_file($_log)) ? self::getPathToLog($_log) : $_log; if (!file_exists($path)) { return false; } $delta = self::getDelta($_log, $_begin, '', false, false, 0, $_nbLines); $arr = explode("\n", $delta['logText']); unset($arr[count($arr) - 1]); $res = array_reverse($arr);