Robert James Kaes
5c02939533
(log_message): Added a fsync() call after each line outputted to the
...
log file.
2004-08-14 03:20:01 +00:00
Robert James Kaes
aee5a63849
Removed unnecessary casts (mostly dealing with memory allocation.) I
...
should never have added them in the first place. They don't really
buy anything, and they can hide bugs.
2004-02-13 21:27:42 +00:00
Robert James Kaes
6aaa863432
Added appropriate casts from (void*) so that the code will compile
...
cleanly with a C++ compiler. (Tested using GCC 3.3)
2003-07-31 23:38:28 +00:00
Robert James Kaes
77ca1c8ce0
# Changed all the for calls to use the != test rather than < test.
...
The change was recommended in the C/C++ User Journal magazine.
2003-05-31 23:02:21 +00:00
Robert James Kaes
af5e1e29f6
# Changed the calls to vector_getentry() to use the new calling
...
convention.
2003-05-30 16:22:30 +00:00
Robert James Kaes
8ab278998f
# Renamed the vector_insert() calls to vector_append()
2003-05-29 20:48:25 +00:00
Robert James Kaes
942f22989a
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.
2002-10-03 20:49:57 +00:00
Robert James Kaes
f0d7992765
(log_message): Changed the code so that the log is opened, written, and closed whenever a message is submitted. This allows the log file to be moved away, for example a rotating the log, and yet still have the information written to the correct file name by all the children.
2002-06-15 17:37:11 +00:00
Robert James Kaes
2b5a3625bc
(send_stored_logs): Actually included the code to output the stored logs. Plus, there was a bug with how I was calling the hashmap_is_end() function. This has now been fixed.
2002-06-06 20:24:21 +00:00
Robert James Kaes
451fad1ed2
Changed the header includes around to reflect the new source layout.
2002-05-23 18:20:27 +00:00
Robert James Kaes
e9f5b2e75f
Check the return value of hashmap_first()
2002-04-26 16:50:55 +00:00
Robert James Kaes
d1031e2c8f
The hashmap API changed, so this function needs to be changed as well.
2002-04-25 18:56:43 +00:00
Robert James Kaes
2ec7a4dd72
The log_message() function now stores the messages if the configuration
...
file has not been read yet. The reason for this is that we don't know
where to log the messgaes until _after_ the config file has been
processed.
2002-04-22 19:34:20 +00:00
Robert James Kaes
787ece6c01
Reformated text.
2001-11-22 00:31:10 +00:00
Robert James Kaes
4ac03908fc
Header reorganization. Basically all system headers are now included in
...
tinyproxy.h and all the other files include the tinyproxy.h header. This
moves all the dependancy issues into one file.
2001-10-25 17:27:39 +00:00
Robert James Kaes
45a021a18b
Fixed a format string bug with the syslog function.
2001-09-04 16:50:22 +00:00
Robert James Kaes
9bdfa623ba
Changed how we handle when compiled with debug code.
2001-08-29 03:59:12 +00:00
Robert James Kaes
9a61faa716
The logging levels _now_ output the correct information depending on where
...
the config file sets it.
2001-08-28 15:51:58 +00:00
Robert James Kaes
bf7a671d87
Fixed a problem where the connect messages were not getting logged if the
...
log level was set to INFO.
2001-08-27 17:44:55 +00:00
Robert James Kaes
cc70fc6f43
Fixed a problem with the new LOG_CONN log level.
2001-08-26 23:37:26 +00:00
Robert James Kaes
e5819ebe1c
Added the Connect log level.
2001-08-26 21:10:04 +00:00
Robert James Kaes
ff97b38603
Explictly cast getpid() to a long int to remove the compiler warnings on
...
various machines.
2001-06-06 19:32:51 +00:00
Robert James Kaes
540e33000b
Changed the format type in the printf() to remove the compiler error (I
...
hope.)
2001-06-05 16:08:15 +00:00
Robert James Kaes
3dfc5e84cc
Fixed a type problem with fprintf in log_message() when logging the PID.
2001-06-02 03:38:02 +00:00
Robert James Kaes
2925b18412
Added the code for handling selective logging.
2001-06-02 03:09:27 +00:00
Robert James Kaes
f89272be35
Changed the log() function to log_message().
2001-05-27 02:26:11 +00:00
Robert James Kaes
30f36f3aa6
Added the LOG_NOTICE level.
2000-09-21 16:53:51 +00:00
Robert James Kaes
4f4f91f76f
Cleaned up the logging format, and also included logging levels (which are
...
similar to the syslogd format.)
2000-09-11 23:47:52 +00:00
Steven Young
37e63909c0
This commit was generated by cvs2svn to compensate for changes in r2,
...
which included commits to RCS files with non-trunk default branches.
2000-02-16 17:32:49 +00:00