Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Creating log files for errors and warnings

by vek (Prior)
on Aug 27, 2010 at 21:05 UTC ( #857770=note: print w/ replies, xml ) Need Help??


in reply to Creating log files for errors and warnings

Just to take a different approach, you could also do this on the command line without any changes to your code. Take that with a pinch of salt though as you didn't give us any code to go on.

If you want all output from your program to go into a file:

./yourprog > combined_file.txt 2>&1

If you want regular data in one file, error data in another:

./yourprog 1> regular_data.txt 2> error_data.txt


Comment on Re: Creating log files for errors and warnings
Select or Download Code
Re^2: Creating log files for errors and warnings
by tej (Scribe) on Aug 28, 2010 at 03:35 UTC

    Thank you folks for your reply..

    I can now generate log file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://857770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-07 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls