Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Error Log Files

by tultalk (Monk)
on Mar 07, 2017 at 15:15 UTC ( [id://1183838]=note: print w/replies, xml ) Need Help??


in reply to Re: Error Log Files
in thread Error Log Files

I am assuming that this code compiles and resides in memory and each time an error or warn is captured it is sent through carpout to be printed. So if I put print "\n\n"; after the carpout call, it should insert a blank line. However, based on the next monk response, carpout does not work that way and output the whole black of error in one shot and the blank is added befor eor after the block depending location of the \n\n code.

Replies are listed 'Best First'.
Re^3: Error Log Files
by 1nickt (Canon) on Mar 07, 2017 at 15:41 UTC

    So if I put print "\n\n"; after the carpout call, it should insert a blank line.

    What in the documentation for carpout supports that idea? More doc, less assuming!

    Since the BEGIN block is executed at the beginning only, as explained in its documentation, maybe what you are thinking of is a custom sig handler for warn?


    The way forward always starts with a minimal test.
      So basically it opens a path to "mylogfile" where the errors are written so obviously \n\n is meaning less in this case. Adding blank lines would have to take place in the actual module code. Ug!! Read and UNDERSTAND documentation. Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-04-23 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found