Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: What is the best way to dump data structures to logfiles?

by blahblahblah (Priest)
on Mar 14, 2007 at 02:52 UTC ( #604728=note: print w/ replies, xml ) Need Help??


in reply to What is the best way to dump data structures to logfiles?

A lot of good options have been mentioned. I think it's important to consider who the primary audience is. If you or another knowledgable Perl programmer are reading the logs, then I like Data::Dumper or some module that does a good job of showing exactly what the perl data structures are. On the other hand, if you're aiming to make it as readable and simple as possible for a non-programmer, I might recommend something that doesn't preserve all the perl details, like JSON.

Joe


Comment on Re: What is the best way to dump data structures to logfiles?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (19)
As of 2014-08-29 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (282 votes), past polls