summaryrefslogtreecommitdiffhomepage
path: root/src/log.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-10-03 20:49:57 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-10-03 20:49:57 +0000
commit942f22989a7eddb40cbc272345314ec07c3dfdbe (patch)
tree52133049099d5f4d5e0ceedab9520de7d903c573 /src/log.h
parent7fd291f407a9ef14cd3ac018c51a34bd446fc3a6 (diff)
The internal log structure now uses a vector rather than a hash. This
change was required to actually display all the logs in the correct order. Also, all log lines are stored internally while tinyproxy is starting. At the appropriate point all the logs are written to the log file.
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index de7894b..c97b06e 100644
--- a/src/log.h
+++ b/src/log.h
@@ -1,4 +1,4 @@
-/* $Id: log.h,v 1.10 2002-05-26 18:55:19 rjkaes Exp $
+/* $Id: log.h,v 1.11 2002-10-03 20:49:57 rjkaes Exp $
*
* See 'log.c' for a detailed description.
*
@@ -99,6 +99,10 @@
# define DEBUG2(x, y...) do { } while(0)
#endif
+extern int open_log_file(const char* file);
+extern void close_log_file(void);
+extern void truncate_log_file(void);
+
extern void log_message(int level, char *fmt, ...);
extern void set_log_level(int level);
extern void send_stored_logs(void);