aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-10 11:54:30 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-10 12:31:54 +0200
commit08129002de26ff010d55e4ad4bc93c675a3412be (patch)
tree11db0f17bb8d7b63f881d98c05a6a1b1f6453b53 /include/libssh
parentb3d62ecba8cdf04fbbc13bf6d206e808e158a296 (diff)
downloadlibssh-08129002de26ff010d55e4ad4bc93c675a3412be.tar.gz
libssh-08129002de26ff010d55e4ad4bc93c675a3412be.tar.xz
libssh-08129002de26ff010d55e4ad4bc93c675a3412be.zip
log: Add new debug log levels.
These should be used in future!
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 4dd84e24..0a780847 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,