File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan  >  PHP Log Analyzer  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: PHP Log Analyzer
Parse log files and extract its entries details
Author: By
Last change:
Date: 7 years ago
Size: 450 bytes
 

Contents

Class file image Download
<?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();
?>

For more information send a message to info at phpclasses dot org.