or10n has asked for the wisdom of the Perl Monks concerning the following question:
I would like the log to read: timestamp::Log line 1::cat to log timestamp::Died for some reason#The logger will write to the file when the logger is #destroyed, or by explicitly calling the flush() function. my $l = Loger->new(fileName=>'/tmp/log.log'); $l->add("Log line 1","cat to log"); die "Died for some reason..."; #More program below
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing Text from a die command
by blokhead (Monsignor) on May 14, 2004 at 18:03 UTC | |
by or10n (Initiate) on May 14, 2004 at 18:24 UTC | |
by hv (Prior) on May 16, 2004 at 13:13 UTC | |
|
Re: Capturing Text from a die command
by matija (Priest) on May 14, 2004 at 18:03 UTC | |
|
Re: Capturing Text from a die command
by kvale (Monsignor) on May 14, 2004 at 17:56 UTC | |
by or10n (Initiate) on May 14, 2004 at 17:59 UTC | |
|
Re: Capturing Text from a die command
by saintmike (Vicar) on May 15, 2004 at 01:07 UTC |