Drupal style logging for Wordpress