Extends
lithium\core\StaticObjectSource
public static function read($channel, $date) {
$path = static::path($channel, $date);
if (!static::exists($channel, $date)) {
return array();
}
$log = array();
$fp = @fopen($path, 'r');
if (!is_resource($fp)) {
return $log;
}
while ($line = fgets($fp)) {
if (preg_match(static::$_pattern, $line, $matches)) {
$log[] = $matches;
}
}
fclose($fp);
return $log;
}