Apache2::Tail - mod_perl handler to display the error_log


Apache2-Tail documentation  | view source Contained in the Apache2-Tail distribution.

Index


NAME

Top

Apache2::Tail - mod_perl handler to display the error_log

SYNOPSIS

Top

  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>




DESCRIPTION

Top

Simple mod_perl handler that displays a pretty html version of the error_log.

OPTIONS

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

INTERNAL DOCUMENTATION

Top

Quick summary of the internal APIs for anybody interested in subclassing Apache2::Tail.

handler($class, $r)

The main handler, responsible for processing the request

error_log($class, $r)

Must return the full path to the file that needs tailing

tail_cnt($class, $r)

returns the maximum number of lines to tail for this request.

style($class, $r)

returns the CSS content for the page

AUTHOR

Top

Philippe M. Chiasson <gozer@cpan.org>

ARTWORK

Top

Tara Gibbs <tarag@activestate.com>

REPOSITORY

Top

http://svn.ectoplasm.org/projects/perl/Apache2-Tail/trunk/

COPYRIGHT

Top


Apache2-Tail documentation  | view source Contained in the Apache2-Tail distribution.