Zero-copy FTP/HTTP Daemon compatible with all POSIX systems
| 1 | #ifndef FTP_LOG_H |
| 2 | #define FTP_LOG_H |
| 3 | |
| 4 | #include "ftp_types.h" |
| 5 | #include <stdint.h> |
| 6 | |
| 7 | typedef enum { |
| 8 | FTP_LOG_INFO = 0, |
| 9 | FTP_LOG_WARN = 1, |
| 10 | FTP_LOG_ERROR = 2 |
| 11 | } ftp_log_level_t; |
| 12 | |
| 13 | void ftp_log_line(ftp_log_level_t level, const char *line); |
| 14 | |
| 15 | void ftp_log_session_event(const ftp_session_t *session, |
| 16 | const char *event, |
| 17 | ftp_error_t result, |
| 18 | uint64_t bytes); |
| 19 | |
| 20 | void ftp_log_session_cmd(const ftp_session_t *session, |
| 21 | const char *command, |
| 22 | ftp_error_t result); |
| 23 | |
| 24 | #endif |
| 25 |