libnetconf2
4.7.5
NETCONF server and client library in C.
log.h
Go to the documentation of this file.
1
17
#ifndef NC_LOG_H_
18
#define NC_LOG_H_
19
20
struct
nc_session;
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
34
typedef
enum
NC_VERB_LEVEL
{
35
NC_VERB_ERROR
= 0,
36
NC_VERB_WARNING
= 1,
37
NC_VERB_VERBOSE
= 2,
38
NC_VERB_DEBUG
= 3,
39
NC_VERB_DEBUG_LOWLVL
= 4
40
}
NC_VERB_LEVEL
;
41
52
void
nc_verbosity
(
NC_VERB_LEVEL
level);
53
54
#ifdef NC_SSH
55
71
void
nc_libssh_thread_verbosity
(
int
level);
72
73
#endif
/* NC_SSH */
74
83
void
nc_set_print_clb_session
(
void
(*clb)(
const
struct
nc_session *,
NC_VERB_LEVEL
,
const
char
*));
84
87
#ifdef __cplusplus
88
}
89
#endif
90
91
#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:34
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:38
NC_VERB_DEBUG_LOWLVL
@ NC_VERB_DEBUG_LOWLVL
Definition:
log.h:39
NC_VERB_WARNING
@ NC_VERB_WARNING
Definition:
log.h:36
NC_VERB_ERROR
@ NC_VERB_ERROR
Definition:
log.h:35
NC_VERB_VERBOSE
@ NC_VERB_VERBOSE
Definition:
log.h:37
src
log.h
Privacy Policy
Generated on Wed Nov 25 2026 21:21:04 for libnetconf2 by
1.9.1