LOG_CRIT, 'error' => LOG_ERR, 'warn' => LOG_WARNING, 'notice' => LOG_NOTICE, 'start' => LOG_INFO, 'exit' => LOG_INFO, 'debug' => LOG_DEBUG, 'hook' => LOG_DEBUG, 'query' => LOG_DEBUG, 'stats' => LOG_DEBUG, ); return isset($priorities[$type]) ? $priorities[$type] : LOG_INFO; } //////////////////////////////////////////////////////////////////////////////