public function convert_log_level ($level, $reverse = false) {
		if ($reverse) {
			switch ($level) {
				case Analog::URGENT:
					return LogLevel::EMERGENCY;
				case Analog::ALERT:
					return LogLevel::ALERT;
				case Analog::CRITICAL:
					return LogLevel::CRITICAL;
				case Analog::ERROR:
					return LogLevel::ERROR;
				case Analog::WARNING:
					return LogLevel::WARNING;
				case Analog::NOTICE:
					return LogLevel::NOTICE;
				case Analog::INFO:
					return LogLevel::INFO;
				case Analog::DEBUG:
					return LogLevel::DEBUG;
			}
			throw new InvalidArgumentException ('Level "' . $level . '" is not defined.');
		} else {
			switch ($level) {
				case LogLevel::EMERGENCY:
					return Analog::URGENT;
				case LogLevel::ALERT:
					return Analog::ALERT;
				case LogLevel::CRITICAL:
					return Analog::CRITICAL;
				case LogLevel::ERROR:
					return Analog::ERROR;
				case LogLevel::WARNING:
					return Analog::WARNING;
				case LogLevel::NOTICE:
					return Analog::NOTICE;
				case LogLevel::INFO:
					return Analog::INFO;
				case LogLevel::DEBUG:
					return Analog::DEBUG;
			}
			throw new InvalidArgumentException ('Level "' . $level . '" is not defined.');
		}
	}