Watchdog логирование в Drupal 7

  1. watchdog('sklad', 'my error message');
  2. watchdog($type = 'sklad', $message = $value, $variables = array(), $severity = WATCHDOG_INFO, $link = NULL);
  3.  
  4. function watchdog_severity_levels() {
  5. return array(
  6. WATCHDOG_EMERGENCY => t('emergency'),
  7. WATCHDOG_ALERT => t('alert'),
  8. WATCHDOG_CRITICAL => t('critical'),
  9. WATCHDOG_ERROR => t('error'),
  10. WATCHDOG_WARNING => t('warning'),
  11. WATCHDOG_NOTICE => t('notice'),
  12. WATCHDOG_INFO => t('info'),
  13. WATCHDOG_DEBUG => t('debug'),
  14. );
  15. }

https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watchdog/7.x