mgxapp/lib/tools.c
/*
	Set the log level to the desired value.
*/
Set the log level to the desired value.
Set the log level to the desired value .
extern void mt_log_set_level( int new_level ) {
	if( new_level >= 0 && new_level <= MT_LOG_DEBUG ) {
		mt_log_vlevel = new_level;
		switch( mt_log_vlevel ) {
			case MT_LOG_CRIT:			
			case MT_LOG_ERR:
					mt_mdc_level = MDCLOG_ERR;
					break;
			case MT_LOG_WARN:
					mt_mdc_level = MDCLOG_WARN;
					break;
			case MT_LOG_INFO:
					mt_mdc_level = MDCLOG_INFO;
					break;
			default:
					mt_mdc_level = MDCLOG_DEBUG;
					break;
		}
		if( ! mt_hr_msgs ) {
			mt_log_init();				
		}
		mdclog_level_set( mt_mdc_level );
	}
}
extern void mt_log_set_level ( int new_level ) { if ( new_level >= 0 && new_level <= MT_LOG_DEBUG ) { mt_log_vlevel = new_level ; switch ( mt_log_vlevel ) { case MT_LOG_CRIT : case MT_LOG_ERR : mt_mdc_level = MDCLOG_ERR ; break ; case MT_LOG_WARN : mt_mdc_level = MDCLOG_WARN ; break ; case MT_LOG_INFO : mt_mdc_level = MDCLOG_INFO ; break ; default : mt_mdc_level = MDCLOG_DEBUG ; break ; } if ( ! mt_hr_msgs ) { mt_log_init ( ) ; } mdclog_level_set ( mt_mdc_level ) ; } }
Set the log level to the desired value.
Set the log level to the desired value .
// mdc has no concept of a critical error // fallthrough // ensure initialised