示例#1
0
文件: zwlog.c 项目: krakjoe/zway
static inline void php_zwlog_free(zend_object *zobj) {
	php_zwlog_t *pz = php_zwlog_fetch_from(zobj);

	zlog_close(pz->zw);

	zend_object_std_dtor(zobj);
}
示例#2
0
文件: test.cpp 项目: karmacao/app
int main() {
	zlog_load("./conf/zlog.conf");
	int i = 1;
	while (i--) {
		zlog(ZDEBUG, "debug log");
		zlog(ZNOTICE, "notice log");
		zlog(ZWARNNING, "warnning log");
		zlog(ZFATAL, "fatal log");
	}
	zlog_close();
	return 0;
}