Today I noticed pieces of code to hook into a logger scattered throughout Gravity Forms, when I was trying to track down an issue. Here’s some quick and dirty code which hooks into the logging methods and writes to the PHP error log:
Tag Archives: logs
PHPNW12: Application logging
Ben Waine’s (@bwaine) talk at PHPNW12 on application logging. As usual, these are my thoughts, misunderstandings and mishearings…corrections welcome in the comments. So, can logging be cool?
Handy sendmail debugging commands
Some sendmail commands I’ve just found useful, but couldn’t locate on Google. Get the current status of a message in the queue: grep ‘james@example.com’ /var/log/maillog Get the headers for an email: cat /var/spool/mqueue/qf[message ID] Get the body of an email: cat /var/spool/mqueue/df[message ID] (Many thanks to my old friend Mr Matt Westby for his help with …