1#ifndef LOGGING_H
2#define LOGGING_H
3
4extern FILE *logfile;
5extern FILE *statuslog;
6extern FILE *statuslogforreading;
7
8void log_init();
9
10/* Status codes */
11#define SL_UNDEF 0
12#define SL_SUCCESS 1
13#define SL_FAILURE 2
14
15/* Message type */
16#define SL_INFO 1
17#define SL_COMMAND 2
18#define SL_REPLY 3
19
20void bftpd_statuslog(char type, char type2, char *format, ...);
21
22void bftpd_log(char *format, ...);
23void log_end();
24
25#endif
26