aboutsummaryrefslogtreecommitdiff
path: root/src/log_file.h
blob: e119f5db13cd31daeeaa55b9bbce260893bb3f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef POTD_LOG_FILE_H
#define POTD_LOG_FILE_H 1

#include "log.h"

#define LOG_FILE_FUNCS log_open_file, log_close_file, \
    log_fmt_file, log_fmtex_file, log_fmtexerr_file

extern char *log_file;


int log_open_file(void);

void log_close_file(void);

void log_fmt_file(log_priority prio, const char *fmt, ...);

void log_fmtex_file(log_priority prio, const char *srcfile,
                    size_t line, const char *fmt, ...);

void log_fmtexerr_file(log_priority prio, const char *srcfile,
                       size_t line, const char *fmt, ...);

#endif