PHP Classes

PHP Log: Parse log files and process with separate classes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-01-12 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 861 This week: 1All time: 3,786 This week: 1,360Up
Version License PHP version Categories  
php-log 0.2GNU General Publi...5.0PHP 5, Databases, Logging
Description Author  

This package can be used to parse log files and process with separate classes.

It can open a given log file and extract values according to a regular expression. By default it uses Apache common log format regular expression.

For each log line it creates an array that contains the log field values. That array is passed to a parser class object for further processing.

A parser class is provided to insert the log field values in a MySQL database.

Picture of Dom Hastings
Name: Dom Hastings <contact>
Classes: 4 packages by
Country: United Kingdom United Kingdom
Age: 31
All time rank: 122653 in United Kingdom United Kingdom
Week rank: 1031 Up46 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.log.mysql.php Class MySQL processor
Plain text file class.log.output.php Class Basic output processor
Plain text file class.log.php Class Main class
Plain text file class.log.processor.php Class Processor interface
Accessible without login Plain text file parse.php Example Example implementation
Accessible without login Plain text file test.log Data Test apache style log

 Version Control Unique User Downloads Download Rankings  
 0%Total:861All time:3,786
 This week:1This week:1,360Up
 User Comments (1)  
Congratulations .
6 years ago (Josť Filipe Lopes Santos)