Quite often a site needs to log important events from custom code. Use the watchdog. I'm getting slightly less descriptive in my introductions.