Apache2::Tail - mod_perl handler to display the error_log
PerlModule Apache2::Tail <Location /tail> SetHandler modperl PerlHandler Apache2::Tail [PerlSetVar Apache2::Tail::ErrorLog /some/other/log/file] [PerlSetVar Apache2::Tail::CSS /css/mystyle.css] [PerlSetVar Apache2::Tail::Count 100] Order deny,allow allow from 127.0.0.0/8 deny from all </Location>
Simple mod_perl handler that displays a pretty html version of the error_log.
These options can be configured with PerlSetVar
Apache2::Tail::ErrorLog
The file to display, defaults to the current VirtualHost's error_log
Apache2::Tail::Count
The default maximum number of lines to display. Defaults to 50, but can also be overriden at request time with the ?n= query parameter
Apache2::Tail::CSS
The URL to an alternate sylesheet, defaults to some built-in defaults
Quick summary of the internal APIs for anybody interested in subclassing Apache2::Tail.
The main handler, responsible for processing the request
Must return the full path to the file that needs tailing
prints the HTML header up to and including the <body> tag
prints the HTML footer closing the <body> tag
returns the maximum number of lines to tail for this request.
returns the CSS content for the page
Philippe M. Chiasson <gozer@cpan.org>
Tara Gibbs <tarag@activestate.com>
http://svn.ectoplasm.org/projects/perl/Apache2-Tail/trunk/
Copyright 2007 by Philippe M. Chiasson <gozer@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Apache2::Tail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Tail
CPAN shell
perl -MCPAN -e shell install Apache2::Tail
For more information on module installation, please visit the detailed CPAN module installation guide.