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); }
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; }