39 #include "UpnpGlobal.h"
40 #include "upnpconfig.h"
84 #define UPNP_DEFAULT_LOG_LEVEL UPNP_ERROR
104 const char *fileName,
106 const char *Ignored);
124 [[gnu::format(__MINGW_PRINTF_FORMAT, 5, 6)]]
126 [[gnu::format(printf, 5, 6)]]
130 EXPORT_SPEC void UpnpPrintf(
136 const char *DbgFileName,
enum Upnp_Module Dbg_Module
Upnp_Module
Definition: upnpdebug.h:49
@ GENA
Definition: upnpdebug.h:55
@ MSERV
Definition: upnpdebug.h:59
@ HTTP
Definition: upnpdebug.h:64
@ SSDP
Definition: upnpdebug.h:51
@ API
Definition: upnpdebug.h:62
@ SOAP
Definition: upnpdebug.h:53
@ TPOOL
Definition: upnpdebug.h:57
EXPORT_SPEC void UpnpSetLogFileNames(const char *fileName, const char *Ignored)
Set the name for the log file. You will then need to call UpnpInitLog to close the old file if needed...
EXPORT_SPEC void UpnpCloseLog(void)
Closes the log output, if appropriate.
EXPORT_SPEC void UpnpSetLogLevel(Upnp_LogLevel log_level)
Set the log verbosity level.
EXPORT_SPEC FILE * UpnpGetDebugFile(Upnp_LogLevel level, Dbg_Module module)
Use the level/module to determine if a message should be emitted.
Upnp_LogLevel
Log verbosity level, from UPNP_CRITICAL to UPNP_ALL, in increasing order of verbosity.
Definition: upnpdebug.h:70
@ UPNP_DEBUG
Definition: upnpdebug.h:78
@ UPNP_ERROR
Definition: upnpdebug.h:74
@ UPNP_INFO
Definition: upnpdebug.h:76
@ UPNP_CRITICAL
Definition: upnpdebug.h:72
@ UPNP_ALL
Definition: upnpdebug.h:80
EXPORT_SPEC int UpnpInitLog(void)
Initialize the log output. Can be called before UpnpInit2.