Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[marto]: if you're living in the cloud, you're going to get rained on :P
[Veltro]: feasible in the sense of 'making money'?
[marto]: if your app just calls a remote or third party service to do the task, you app does not 'do the task', it's just a messenger
[marto]: in the sense that for various values of "a while ago" it would not have been possible (and arguable still isn't) to have a fingerprint of every piece of commercially released music to compare against.
[marto]: a co-worker refers to the late 1980s as "a while ago"
[Veltro]: Like I said before, I ment the solution as a whole
[Veltro]: People thought it was not possible.
[marto]: and until recently it wasn't and arguable (for some samples) probably isn't
[Veltro]: How did we get here? Oh yeah, advertisement. So let's get back there. What I ment to say is that I think it is possible to create an algorithm that filters out advertisement
[Veltro]: And yes, maybe your decoder needs the cloud to do so.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2018-05-24 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?