PHP Classes

PHP Log: Parse log files and process with separate classes

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 920 All time: 3,870 This week: 455Up
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
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:920
This week:0
All time:3,870
This week:455Up
User Ratings User Comments (2)
 All time
Utility:58%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3597
 
Does not support mysqli or PDO
9 years ago (Greg)
25%StarStar
Congratulations .
16 years ago (José Filipe Lopes Santos)
70%StarStarStarStar