books
Free Books / Computers / Practical mod_perl /

previous page: B.17.8. Apache::Log—Interface to Apache Logging
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.17.10. Apache::Scoreboard—Perl Interface to Apache's scoreboard.h

B.17.9. Apache::LogFile—Interface to Apache's Logging Routines




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

The PerlLogFile directive from this package can be used to hook a Perl file handle to a piped logger or to a file open for appending. If the first character of the filename is a "|", the file handle is opened as a pipe to the given program. The file or program can be relative to the ServerRoot.

So if httpd.conf contains these settings:

PerlModule Apache::LogFile
PerlLogFile |perl/mylogger.pl My::Logger

in your code you can log to the My::Logger file handle:

print My::Logger "a message to the Log"

and it'll be piped through the perl/mylogger.pl script.

Available from CPAN. See the module manpage for more information.

 

Continue to:

  • prev: B.17.8. Apache::Log—Interface to Apache Logging
  • Table of Contents
  • next: B.17.10. Apache::Scoreboard—Perl Interface to Apache's scoreboard.h

Books by Stas Bekman:















TOP
previous page: B.17.8. Apache::Log—Interface to Apache Logging
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.17.10. Apache::Scoreboard—Perl Interface to Apache's scoreboard.h

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com