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.
This commit is contained in:
Robert James Kaes committed 2002-10-03 20:49:57 +00:00
1 parent 7fd291f407
commit 942f22989a
2 files changed
+76 -41

No files matched your search

+5 -1
View File
@@ -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);