Re: How to log the output of Mime::Lite ?
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Jun 2006 11:13:10 +1000
<kenhensleys@xxxxxxxxx> wrote in message
news:1151362359.186932.304500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have this simple Mime::Lite script quoted below.
It works alright.
But I would like to trace the result of the output.
Something like
set -x in ksh
or anything else similar.
Or some logging?
What should I do and where should I put it?
At the beginning of your script:
open LOG, ">>/path/to/logfile" or die "Can't open log: $!";
Then, throughout your script, whenever you want to write something to the
logfile:
print LOG "Whatever you want to put in the logfile";
And at the end of the script:
close LOG or die "Can't close log: $!";
Cheers,
Rob
.
- References:
- How to log the output of Mime::Lite ?
- From: kenhensleys
- How to log the output of Mime::Lite ?
- Prev by Date: WWW::YouTube has been technically corrected
- Next by Date: Parsing return message from fetchmail
- Previous by thread: How to log the output of Mime::Lite ?
- Next by thread: WWW::YouTube has been technically corrected
- Index(es):
Relevant Pages
|