Skip to content

A listener to be used with Apache to do anything with the log.

Notifications You must be signed in to change notification settings

nicktacular/httpd-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

httpd-logger

A listener to be used with Apache to do anything with the log.

Example

The could start the app like so:

<?php

include 'src/autoload.php';

$app = new N7_LogParser(
	new N7_DataSource_Stdin(),
	new N7_Processor_Mongo(),
	new N7_LogFormat_Super(),
	new N7_NullLogger()
);

Now you can have Apache set so that it pipes output to your app. You could test it first by trying this:

$ cat logfile.log | php myApp.php

And that's it. Explore the different data sources, log formats, and processors available to you in src/. Keep in mind this app was written with PHP 5.2.17 compatibility, hence all the ugly non-namespaced classes.

About

A listener to be used with Apache to do anything with the log.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages