log.h
Go to the documentation of this file.
#ifndef NC_LOG_H_
#define NC_LOG_H_
struct nc_session;
#ifdef __cplusplus
extern "C" {
#endif
typedef enum NC_VERB_LEVEL {
NC_VERB_ERROR = 0,
NC_VERB_WARNING = 1,
NC_VERB_VERBOSE = 2,
NC_VERB_DEBUG = 3,
NC_VERB_DEBUG_LOWLVL = 4
} NC_VERB_LEVEL;
void nc_verbosity(NC_VERB_LEVEL level);
#ifdef NC_ENABLED_SSH
void nc_libssh_thread_verbosity(int level);
#endif
void nc_set_print_clb(void (*clb)(NC_VERB_LEVEL, const char *));
void nc_set_print_clb_session(void (*clb)(const struct nc_session *, NC_VERB_LEVEL, const char *));
#ifdef __cplusplus
}
#endif
#endif /* NC_LOG_H_ */
nc_libssh_thread_verbosity
void nc_libssh_thread_verbosity(int level)
Set libssh verbosity level.
NC_VERB_LEVEL
NC_VERB_LEVEL
Verbosity levels.
Definition: log.h:32
nc_set_print_clb
void nc_set_print_clb(void(*clb)(NC_VERB_LEVEL, const char *))
Deprecated, use nc_set_print_clb_session() instead.
nc_set_print_clb_session
void nc_set_print_clb_session(void(*clb)(const struct nc_session *, NC_VERB_LEVEL, const char *))
Set libnetconf print callback.
nc_verbosity
void nc_verbosity(NC_VERB_LEVEL level)
Set libnetconf's verbosity level.
NC_VERB_DEBUG
@ NC_VERB_DEBUG
Definition: log.h:36
NC_VERB_DEBUG_LOWLVL
@ NC_VERB_DEBUG_LOWLVL
Definition: log.h:37
NC_VERB_WARNING
@ NC_VERB_WARNING
Definition: log.h:34
NC_VERB_ERROR
@ NC_VERB_ERROR
Definition: log.h:33
NC_VERB_VERBOSE
@ NC_VERB_VERBOSE
Definition: log.h:35