SSH Logging

Logging functions for debugging and problem resolving. More...


Enumerations

enum  {
  SSH_LOG_NOLOG = 0, SSH_LOG_RARE, SSH_LOG_PROTOCOL, SSH_LOG_PACKET,
  SSH_LOG_FUNCTIONS
}
 Verbosity level for logging and help to debugging. More...

Functions

void ssh_log (SSH_SESSION *session, int verbosity, const char *format,...)
 Log a SSH event.


Detailed Description

Logging functions for debugging and problem resolving.

Enumeration Type Documentation

anonymous enum

Verbosity level for logging and help to debugging.

Enumerator:
SSH_LOG_NOLOG  No logging at all.
SSH_LOG_RARE  Only rare and noteworthy events.
SSH_LOG_PROTOCOL  High level protocol informations.
SSH_LOG_PACKET  Lower level protocol infomations, packet level.
SSH_LOG_FUNCTIONS  Every function path.


Function Documentation

void ssh_log ( SSH_SESSION *  session,
int  verbosity,
const char *  format,
  ... 
)

Log a SSH event.

Parameters:
session The SSH session.
verbosity The verbosity of the event.
format The format string of the log entry.

References SSH_LOG_FUNCTIONS.

Referenced by channel_close(), channel_read(), channel_read_buffer(), channel_send_eof(), channel_write(), ssh_connect(), and ssh_userauth_autopubkey().


doxygen