Re:Logging and Learning
by jrockway on Thursday December 11, 2008 @07:12AM
(#394228)
Whenever there is a weird bug in my software, I wish I had logged more.
To prevent this from happening, I just put the request, state, and response objects into my object database now. It doesn't really take up all that much space, and it is nice to have a big picture of what is going on with the app.
The next step is to start logging data flow at key points.
(BTW, this data all "dies"... but it is nice to have when something is obviously failing. You can always process data you have; you can't process data you don't have. Log now, ask questions later.)
To prevent this from happening, I just put the request, state, and response objects into my object database now. It doesn't really take up all that much space, and it is nice to have a big picture of what is going on with the app.
The next step is to start logging data flow at key points.
(BTW, this data all "dies"... but it is nice to have when something is obviously failing. You can always process data you have; you can't process data you don't have. Log now, ask questions later.)