b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

log4cpp_log4qt_log4j与log4cp区别(13)

电脑杂谈  发布时间:2016-12-26 03:02:23  来源:网络整理

log4c_rollingpolicy_init(rpolicyp,

log4c_rollingpolicy_get_rfudata(rpolicyp));

}

}

else if (!strcasecmp(type->value, "timewin")){

sd_domnode_t* timetype = sd_domnode_attrs_get(anode, "timetype");

sd_domnode_t* maxnum= sd_domnode_attrs_get(anode, "maxnum");

rollingpolicy_timewin_udata_t *timewin_udatap = NULL;

sd_debug("type='timewin', timetype='%s', maxnum='%s', "

"rpolicyname='%s'",

(timetype && timetype->value ? timetype->value :"(not set)"),

(maxnum && maxnum->value ? maxnum->value :"(not set)"),

(name && name->value ? name->value :"(not set)"));

/*

* Get a new sizewin policy type and configure it.

* Then attach it to the policy object.

* Check to see if this policy already has a

sw udata object.If so, leave as is except update

the params

*/

if ( !(timewin_udatap = log4c_rollingpolicy_get_udata(rpolicyp))){

sd_debug("creating new sizewin udata for this policy");

timewin_udatap = timewin_make_udata();

log4c_rollingpolicy_set_udata(rpolicyp,timewin_udatap);

timewin_udata_set_file_time_type(timewin_udatap, atoi(timetype->value));

timewin_udata_set_max_num_files(timewin_udatap, atoi(maxnum->value));

}else{

sd_debug("policy already has a sizewin udata--just updating params");

timewin_udata_set_file_time_type(timewin_udatap, atoi(timetype->value));

timewin_udata_set_max_num_files(timewin_udatap, atoi(maxnum->value));

/* allow the policy to initialize itself */

log4c_rollingpolicy_init(rpolicyp,

log4c_rollingpolicy_get_rfudata(rpolicyp));

}

}

}

sd_debug("]");

return 0;

}

#endif


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-23402-13.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 付敏敏
      付敏敏

      楼上的那个叫什么陈川的你就是嫉妒

    热点图片
    拼命载入中...