wsdd icon indicating copy to clipboard operation
wsdd copied to clipboard

debug.log how to use?

Open Nigelwz opened this issue 6 years ago • 5 comments

Hi, I want to use gsoap onvif ,how can I use generate *.log file see

daemon_error_exit()

? thanks

Nigelwz avatar Oct 21 '19 06:10 Nigelwz

This function works as a printf, it print to the error console. if you need it to print to a file (*.log), you should use a stream pointer for your file. int vfprintf(FILE *stream, const char *format, va_list ap);

see man page

KoynovStas avatar Oct 21 '19 07:10 KoynovStas

Hi ok I Know thanks, By the way, I use onvif device tool on ubantu but I can see some error on tool. IMG_1868

thank your reply.

Nigelwz avatar Oct 21 '19 08:10 Nigelwz

:) see define DAEMON_NO_CLOSE_STDIO = 0 in Makefile. find this macro in the code and you will understand!

KoynovStas avatar Oct 21 '19 08:10 KoynovStas

OK thanks, I will check

Nigelwz avatar Oct 21 '19 08:10 Nigelwz

Hi , I think the Define description do not related my error messange. the log seem like I have some setting which has problem. Do you have test the code with onvif test tool on ubantu?

thanks your repley.

Nigelwz avatar Oct 21 '19 13:10 Nigelwz

No I used free ONVIF Device Manager You can uses ONVIF Device Test Tool for windows.

KoynovStas avatar May 29 '23 10:05 KoynovStas