<?php
require("PhpLogAnalyser.inc.php");
$obj=new PhpLogAnalyser();
$obj->setLogFile("/var/logs/apache2/error.log");
$obj->setLogFile("/var/logs/apache2/apache2/logs/access.log");
$obj->setLogFile("/var/www/htdocs/demoyii_app/protected/runtime/application.log");
//$obj->setLinesToBeRead(50);
//$obj->readFromEndOfFile(false);
/*
$result=$obj->getParsedLines();
echo "<pre>"; print_r($result);
*/
$obj->renderFileContents();
?>
|