| Apache2-Tail documentation | view source | Contained in the Apache2-Tail distribution. |
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
The file to display, defaults to the current VirtualHost's error_log
The default maximum number of lines to display. Defaults to 50, but can also be overriden at request time with the ?n= query parameter
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
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
| Apache2-Tail documentation | view source | Contained in the Apache2-Tail distribution. |