|
|
@@ -519,10 +519,14 @@ namespace cmb {
|
|
|
void log4cplus_helper::loglink(LOG_LEVEL_E level, vtm_string text)
|
|
|
{
|
|
|
if (_upload_helper.is_initialized()) {
|
|
|
- log_link link_item((VENDORLOG_LEVEL_E)(int)(level), VENDORLOG_TYPE_SYSTEM);
|
|
|
- log_item logitem;
|
|
|
- link_item.result_msg(text).with_extend_log_or_not(false).fetch_log_item(logitem);
|
|
|
- _upload_helper.pinst_log_producer_client_add_log(_upload_helper._client, &logitem, 1);
|
|
|
+ /*LOG_LEVEL_DEBUG = 0, LOG_LEVEL_INFO = 1, LOG_LEVEL_WARN = 2, LOG_LEVEL_ERROR = 3, LOG_LEVEL_FATAL = 4*/
|
|
|
+ const int converted_ll = ((int)(level)+1) * 10000;
|
|
|
+ if (_log_level <= converted_ll) {
|
|
|
+ log_link link_item((VENDORLOG_LEVEL_E)(int)(level), VENDORLOG_TYPE_SYSTEM);
|
|
|
+ log_item logitem;
|
|
|
+ link_item.result_msg(text).with_extend_log_or_not(false).fetch_log_item(logitem);
|
|
|
+ _upload_helper.pinst_log_producer_client_add_log(_upload_helper._client, &logitem, 1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|