mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
log: Add new debug log levels.
These should be used in future!
This commit is contained in:
@@ -254,9 +254,6 @@ enum ssh_keytypes_e{
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Verbosity level for logging and help to debugging
|
|
||||||
*/
|
|
||||||
enum {
|
enum {
|
||||||
/** No logging at all
|
/** No logging at all
|
||||||
*/
|
*/
|
||||||
@@ -277,6 +274,26 @@ enum {
|
|||||||
/** @} */
|
/** @} */
|
||||||
#define SSH_LOG_RARE SSH_LOG_WARNING
|
#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 {
|
enum ssh_options_e {
|
||||||
SSH_OPTIONS_HOST,
|
SSH_OPTIONS_HOST,
|
||||||
SSH_OPTIONS_PORT,
|
SSH_OPTIONS_PORT,
|
||||||
|
|||||||
Reference in New Issue
Block a user