[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] is there a logging module available?




>>>In what I am trying to achieve, several asynchronous requests to my cgi
>>>script will be logged in one single text file. I am looking for a solution
>>>that does not rely on any system calls that are not cross platform.

>> There is no good cross-platform way to do it that I know of.  You would
>> need to rely on a separate process (syslogd) or use file locking, to make
>> sure that the process don't bump heads.

You could also consider purchasing the CGI/Perl Cookbook-- it comes with
several utility sub-routines that were specifically written to be
cross-platform compatible, at least between the MacOS, Windows and UNIX.

One sub-routine implements file locking and unlocking -- based on the
creation/existance of lock files, with time-outs, and a few other features.
It was specifically written to address the problem of flock() not being
available on all platforms.

Another sub-routine sends email using any local SMTP server. A lot of people
on this list (me included) have been looking for an easy solution to send
email from their Mac using MacPerl. If you can reach an SMTP server, then
this subroutine will work fine. It's dead easy to use, and even allows you
to attach files using base64 or uuencode encoding.

Overall, I've found it to be a very good book, and the included programs and
sub-routines alone were well worth the cost of the book.

Regards,

Matt Henderson   |   matt@exponet.net   |    www.exponet.net
                 .                      .
E x p o n e t   M e d i a  T e c h n o l o g i e s   G m b H
Full-Service Web Development & Engineering Services Provider

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org