Error Logging for the Clumsy Programmer

Step 1: Panic. Then try to remember what you did last night.

Step 2: Check the logs. If they're not there, create them. Duh.

Step 3: Look for the error in all the usual places. Like, you know, the fridge.