You are here

function _filelog_decode_severity in File Log 7

Same name and namespace in other branches
  1. 6.2 filelog.module \_filelog_decode_severity()
  2. 6 filelog.module \_filelog_decode_severity()
2 calls to _filelog_decode_severity()
filelog_filename in ./filelog.module
theme_filelog_format in ./filelog.module
Format a file log entry.

File

./filelog.module, line 226
Writes logging messages into files.

Code

function _filelog_decode_severity($severity) {
  switch ($severity) {
    case WATCHDOG_DEBUG:
      return 'debug';
    case WATCHDOG_INFO:
      return 'info';
    case WATCHDOG_NOTICE:
      return 'notice';
    case WATCHDOG_WARNING:
      return 'warning';
    case WATCHDOG_ERROR:
      return 'error';
    case WATCHDOG_CRITICAL:
      return 'critical';
    case WATCHDOG_ALERT:
      return 'alert';
    case WATCHDOG_EMERG:
      return 'emergency';
    default:
      return 'unknown';
  }
}