* @author Daniel Reichelt (2016-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * */ function getLogLevelDesc($type) { switch($type) { case LOG_INFO: $_type = 'information'; break; case LOG_NOTICE: $_type = 'notice'; break; case LOG_WARNING: $_type = 'warning'; break; case LOG_ERR: $_type = 'error'; break; case LOG_CRIT: $_type = 'critical'; break; case LOG_DEBUG: $_type = 'debug'; break; default: $_type = 'unknown'; break; } return $_type; }