|
libssh 0.12.0
The SSH library
|
Enumerations | |
| enum | { SSH_LOG_NOLOG =0 , SSH_LOG_WARNING , SSH_LOG_PROTOCOL , SSH_LOG_PACKET , SSH_LOG_FUNCTIONS } |
Functions | |
| void | ssh_log_function (int verbosity, const char *function, const char *buffer) |
| void | ssh_vlog (int verbosity, const char *function, const char *format, va_list *va) |
| void | _ssh_log (int verbosity, const char *function, const char *format,...) |
| void | ssh_log (ssh_session session, int verbosity, const char *format,...) |
| Log a message using the verbosity level of the given session. | |
| void | ssh_log_common (struct ssh_common_struct *common, int verbosity, const char *function, const char *format,...) |
| int | ssh_set_log_level (int level) |
| Set the log level of the library. | |
| int | ssh_get_log_level (void) |
| Get the log level of the library. | |
| int | ssh_set_log_callback (ssh_logging_callback cb) |
| Set the logging callback function. | |
| void | _ssh_reset_log_cb (void) |
| ssh_logging_callback | ssh_get_log_callback (void) |
| Get the pointer to the logging callback function. | |
| void * | ssh_get_log_userdata (void) |
| Get the userdata of the logging function. | |
| int | ssh_set_log_userdata (void *data) |
| Set the userdata for the logging function. | |
Logging functions for debugging and problem resolving.
| anonymous enum |
| ssh_logging_callback ssh_get_log_callback | ( | void | ) |
Get the pointer to the logging callback function.
| int ssh_get_log_level | ( | void | ) |
Get the log level of the library.
| void * ssh_get_log_userdata | ( | void | ) |
Get the userdata of the logging function.
| void ssh_log | ( | ssh_session | session, |
| int | verbosity, | ||
| const char * | format, | ||
| ... ) |
Log a message using the verbosity level of the given session.
| session | The SSH session whose verbosity level is checked. |
| verbosity | The verbosity level of the message. |
| format | A printf-style format string. |
| ... | Arguments as described by the format string. |
| int ssh_set_log_callback | ( | ssh_logging_callback | cb | ) |
Set the logging callback function.
| [in] | cb | The callback to set. |
| int ssh_set_log_level | ( | int | level | ) |
Set the log level of the library.
| [in] | level | The level to set. |
| int ssh_set_log_userdata | ( | void * | data | ) |
Set the userdata for the logging function.
| [in] | data | The userdata to set. |