mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-12 15:17:14 +03:00
33 lines
686 B
C
33 lines
686 B
C
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#include "common.h"
|
|
|
|
void setup_syslog(const char* bin_name);
|
|
|
|
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;
|
|
|
|
extern msg_info msg_fd;
|
|
extern msg_info msg_packets;
|
|
|
|
extern msg_info msg_int_error;
|
|
extern msg_info msg_system_error;
|
|
|
|
extern msg_info msg_connections_try;
|
|
extern msg_info msg_connections_error;
|
|
extern msg_info msg_connections;
|
|
|
|
extern msg_info msg_probe_info;
|
|
extern msg_info msg_probe_error;
|
|
|
|
#endif /* LOG_H */
|