sslh/log.h
2021-09-19 15:13:04 +02:00

20 lines
420 B
C

#ifndef LOG_H
#define LOG_H
void setup_syslog(const char* bin_name);
void log_message(int type, const char* msg, ...);
void log_connection(struct connection_desc* desc, const struct connection *cnx);
typedef struct s_msg_info{
int log_level;
int *verbose;
} msg_info;
void print_message(msg_info info, const char* str, ...);
extern msg_info msg_config;
extern msg_info msg_config_error;
#endif /* LOG_H */