From 1c9022f075387e86269a79ac71f61dd4ac32c421 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 30 May 2018 15:43:08 +0200 Subject: POTD skeleton #83. Signed-off-by: Toni Uhlig --- src/log_file.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/log_file.h (limited to 'src/log_file.h') diff --git a/src/log_file.h b/src/log_file.h new file mode 100644 index 0000000..e119f5d --- /dev/null +++ b/src/log_file.h @@ -0,0 +1,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 -- cgit v1.2.3