|
libUPnP 2.0.1
|


Go to the source code of this file.
Upnp_LogLevel | |
The user has the option to select 4 different types of debugging levels, see
| |
| #define | UPNP_PACKET UPNP_ERROR |
| #define | UPNP_DEFAULT_LOG_LEVEL UPNP_ALL |
| enum | Upnp_Module { SSDP , SOAP , GENA , TPOOL , MSERV , DOM , API , HTTP } |
| enum | Upnp_LogLevel_e { UPNP_CRITICAL , UPNP_ERROR , UPNP_INFO , UPNP_ALL , UPNP_NEVER } |
| typedef enum Upnp_Module | Dbg_Module |
| typedef enum Upnp_LogLevel_e | Upnp_LogLevel |
| int | UpnpInitLog (void) |
| Initialize the log files. | |
| void | UpnpSetLogLevel (Upnp_LogLevel log_level) |
Set the log level (see Upnp_LogLevel). | |
| void | UpnpCloseLog (void) |
| Closes the log files. | |
| void | UpnpSetLogFileNames (const char *fileName, const char *Ignored) |
| Set the name for the log file. There used to be 2 separate files. The second parameter has been kept for compatibility but is ignored. Use a NULL file name for logging to stderr. | |
| FILE * | UpnpGetDebugFile (Upnp_LogLevel level, Dbg_Module module) |
| Check if the module is turned on for debug and returns the file descriptor corresponding to the debug level. | |
| #define UPNP_DEFAULT_LOG_LEVEL UPNP_ALL |
Default log level : see Upnp_LogLevel
| void UpnpCloseLog | ( | void | ) |
| FILE * UpnpGetDebugFile | ( | Upnp_LogLevel | level, |
| Dbg_Module | module ) |
Check if the module is turned on for debug and returns the file descriptor corresponding to the debug level.
| [in] | level | The level of the debug logging. It will decide whether debug statement will go to standard output, or any of the log files. |
| [in] | module | debug will go in the name of this module. |
| int UpnpInitLog | ( | void | ) |
Initialize the log files.
References GlobalDebugMutex, and UPNP_E_SUCCESS.
Referenced by UpnpInitPreamble().
| void UpnpSetLogFileNames | ( | const char * | fileName, |
| const char * | Ignored ) |
Set the name for the log file. There used to be 2 separate files. The second parameter has been kept for compatibility but is ignored. Use a NULL file name for logging to stderr.
| [in] | fileName | Name of the log file. |
| [in] | Ignored | Ignored. |
| void UpnpSetLogLevel | ( | Upnp_LogLevel | log_level | ) |