File: log.h

package info (click to toggle)
sslh 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,960 kB
  • sloc: ansic: 7,681; perl: 683; sh: 356; makefile: 136
file content (36 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef LOG_H
#define LOG_H

#include "common.h"

void setup_syslog(const char* bin_name);

void setup_logfile();

void close_logfile();

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 */