From 08129002de26ff010d55e4ad4bc93c675a3412be Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 10 Sep 2011 11:54:30 +0200 Subject: log: Add new debug log levels. These should be used in future! --- include/libssh/libssh.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'include/libssh/libssh.h') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 4dd84e2..0a78084 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -254,9 +254,6 @@ enum ssh_keytypes_e{ * @{ */ -/** - * @brief Verbosity level for logging and help to debugging - */ enum { /** No logging at all */ @@ -277,6 +274,26 @@ enum { /** @} */ #define SSH_LOG_RARE SSH_LOG_WARNING +/** + * @name Logging levels + * + * @brief Debug levels for logging. + * @{ + */ + +/** No logging at all */ +#define SSH_LOG_NONE 0 +/** Show only warnings */ +#define SSH_LOG_WARN 1 +/** Get some information what's going on */ +#define SSH_LOG_INFO 2 +/** Get detailed debuging information **/ +#define SSH_LOG_DEBUG 3 +/** Get trace output, packet information, ... */ +#define SSH_LOG_TRACE 4 + +/** @} */ + enum ssh_options_e { SSH_OPTIONS_HOST, SSH_OPTIONS_PORT, -- cgit