1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

Added a special NSOCK_LOG_NONE value, to disable all messages.

This commit is contained in:
henri
2013-01-23 21:25:01 +00:00
parent eb98386809
commit 0e5e939c00

View File

@@ -133,11 +133,19 @@ typedef void *nsock_ssl;
/* Logging-related data structures */
typedef enum {
/* --
* Actual message priority values */
NSOCK_LOG_DBG_ALL,
NSOCK_LOG_DBG,
NSOCK_LOG_INFO,
NSOCK_LOG_ERROR
NSOCK_LOG_ERROR,
/* --
* No messages are issued by nsock with this value.
* Users can therefore set loglevel to NSOCK_LOG_NONE
* to disable logging */
NSOCK_LOG_NONE
} nsock_loglevel_t;
struct nsock_log_rec {