Nesh has asked for the wisdom of the Perl Monks concerning the following question:
Now when I capture everything through print then it works fine...but as soon as I try to use logging it fails. Please advise. Thanksuse Log::Log4perl qw(); Log::Log4perl->init("process.conf"); my $log = Log::Log4perl->get_logger(); open APP, "Exception.bat |" or die "File not found\n"; while(<APP>){ print; #log->info; } close APP; print "Out of batch file\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running an application and capturing output
by mifflin (Curate) on Jun 02, 2005 at 02:21 UTC | |
by chromatic (Archbishop) on Jun 02, 2005 at 04:13 UTC | |
by mifflin (Curate) on Jun 02, 2005 at 04:58 UTC | |
|
Re: Running an application and capturing output
by moot (Chaplain) on Jun 02, 2005 at 01:33 UTC | |
|
Re: Running an application and capturing output
by thundergnat (Deacon) on Jun 02, 2005 at 01:35 UTC | |
by Nesh (Beadle) on Jun 02, 2005 at 01:40 UTC | |
by thundergnat (Deacon) on Jun 02, 2005 at 01:59 UTC | |
by Nesh (Beadle) on Jun 02, 2005 at 02:18 UTC |