aboutsummaryrefslogtreecommitdiff
path: root/src/log_file.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-30 15:43:08 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-30 15:43:08 +0200
commit1c9022f075387e86269a79ac71f61dd4ac32c421 (patch)
tree535773b5db20511503bde730cf78339e18b894fd /src/log_file.h
parent0dc05d5eaf474c30bcb71f77a2c34f521452c0b5 (diff)
POTD skeleton #83.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/log_file.h')
-rw-r--r--src/log_file.h24
1 files changed, 24 insertions, 0 deletions
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