Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-01-10 | log: shortcut return in shutdown_logging() if logging_initialized == false | Michael Adam | 1 | -0/+4 | |
This does for instance happen at startup when logging has not yet been set up. Michael | |||||
2009-12-23 | log: confess - add my (C) after substantial changes. | Michael Adam | 1 | -0/+1 | |
Michael | |||||
2009-12-23 | log: remove unneeded truncate_log_file(). | Michael Adam | 1 | -12/+0 | |
Michael | |||||
2009-12-23 | log: fix log_message so do only one write before the fsync. | Michael Adam | 1 | -13/+13 | |
This way the logging from the various child processes does not get clobbered up. Formerly, the different write portions (time stamp, message, newline) would get mixed from the various child processes' log messages. Michael | |||||
2009-12-23 | log: add start/end debug messages for "sending stored logs". | Michael Adam | 1 | -0/+4 | |
Michael | |||||
2009-12-23 | log: enhance close_log_file to reset logfile_fd to -1 after closing | Michael Adam | 1 | -0/+5 | |
Michael | |||||
2009-12-23 | log.c: remove superfluous uses of #ifdef HAVE_SYSLOG_H | Michael Adam | 1 | -10/+4 | |
When this code is hit, availability of syslog has already been checked (when reading the config file). So config.syslog == TRUE only when HAVE_SYSLOG_H is defined. So I remove the preprocessor checks which only clobber the logic and make the code harder to read (IMHO). Michael | |||||
2009-12-23 | log: call send_stored_logs in setup_logging instead of in main(). | Michael Adam | 1 | -0/+2 | |
This is where it actually belongs. Michael | |||||
2009-12-23 | log: add boolean local variable logging_initialized. | Michael Adam | 1 | -1/+6 | |
This controls whether log_messages should write to the log file / syslog or rather to the log_message_storage. This will make the global processed_config_file variable from main unneccessary in the next step. Michael | |||||
2009-12-23 | log: add function shutdown_logging(). | Michael Adam | 1 | -0/+15 | |
Michael | |||||
2009-12-07 | Move definition of "struct config_s" from main.h to conf.h | Michael Adam | 1 | -0/+1 | |
Michael | |||||
2009-11-14 | extract setup of the logging subsystem into a function of its own. | Michael Adam | 1 | -0/+37 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2009-11-10 | intentation: convert a tab to spaces | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-09-27 | Don't ignore retval of write() in log.c | Mukund Sivaraman | 1 | -3/+20 | |
2009-09-27 | Don't ignore retval of ftruncate() in log.c | Mukund Sivaraman | 1 | -1/+4 | |
2009-09-15 | Indent code to Tinyproxy coding style | Mukund Sivaraman | 1 | -118/+102 | |
The modified files were indented with GNU indent using the following command: indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ -saf -sai -saw -sc -cdw -ce -nut -il0 No other changes of any sort were made. | |||||
2009-08-07 | send_stored_logs(): remove an implicit cast warning. | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-08-07 | send_stored_logs: fix signed/unsigned comparison | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-08-07 | log_message(): remove implicit cast warning. | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-08-07 | log: make const char array const. | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-08-07 | Rename tinyproxy.[ch] to main.[ch] | Mukund Sivaraman | 1 | -1/+1 | |
2009-08-04 | remove "discard const" compiler warnings with log_message(). | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2008-12-08 | Convert tabs to spaces | Mukund Sivaraman | 1 | -17/+17 | |
2008-12-01 | Reformat code to GNU coding style | Mukund Sivaraman | 1 | -99/+111 | |
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made. | |||||
2008-08-24 | pos can never be less than 0 as it's of type size_t | Mukund Sivaraman | 1 | -1/+1 | |
Also fix the type which is passed in from various places. | |||||
2008-05-24 | Updated copyright, license notices in source code | Mukund Sivaraman | 1 | -14/+18 | |
The notices have been changed to a more GNU look. Documentation comments have been separated from the copyright header. I've tried to keep all copyright notices intact. Some author contact details have been updated. | |||||
2008-03-30 | Free entry_buffer or it'll be leaked | Mukund Sivaraman | 1 | -0/+2 | |
vector_append() calls vector_insert() which makes a copy of the passed buffer, so the caller can free its buffer. | |||||
2008-03-30 | Fixed leaks of va_lists | Mukund Sivaraman | 1 | -6/+4 | |
2005-08-15 | * [Indent] Ran Source Through indent | Robert James Kaes | 1 | -94/+93 | |
I re-indented the source code using indent with the following options: indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs There are now _no_ tabs in the source files, and all indentation is eight spaces. Lines are 80 characters long, and the procedure type is on it's own line. Read the indent manual for more information about what each option means. | |||||
2005-07-12 | * Updated Copyright Email Addresses | Robert James Kaes | 1 | -2/+2 | |
Updated the copyright email addresses for Robert James Kaes. The users.sourceforge.net address should always exist. | |||||
2004-08-14 | (log_message): Added a fsync() call after each line outputted to the | Robert James Kaes | 1 | -1/+2 | |
log file. | |||||
2004-02-13 | Removed unnecessary casts (mostly dealing with memory allocation.) I | Robert James Kaes | 1 | -3/+3 | |
should never have added them in the first place. They don't really buy anything, and they can hide bugs. | |||||
2003-07-31 | Added appropriate casts from (void*) so that the code will compile | Robert James Kaes | 1 | -4/+4 | |
cleanly with a C++ compiler. (Tested using GCC 3.3) | |||||
2003-05-31 | # Changed all the for calls to use the != test rather than < test. | Robert James Kaes | 1 | -2/+2 | |
The change was recommended in the C/C++ User Journal magazine. | |||||
2003-05-30 | # Changed the calls to vector_getentry() to use the new calling | Robert James Kaes | 1 | -2/+2 | |
convention. | |||||
2003-05-29 | # Renamed the vector_insert() calls to vector_append() | Robert James Kaes | 1 | -2/+2 | |
2002-10-03 | The internal log structure now uses a vector rather than a hash. This | Robert James Kaes | 1 | -40/+71 | |
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-06-15 | (log_message): Changed the code so that the log is opened, written, and ↵ | Robert James Kaes | 1 | -9/+13 | |
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-06 | (send_stored_logs): Actually included the code to output the stored logs. ↵ | Robert James Kaes | 1 | -5/+20 | |
Plus, there was a bug with how I was calling the hashmap_is_end() function. This has now been fixed. | |||||
2002-05-23 | Changed the header includes around to reflect the new source layout. | Robert James Kaes | 1 | -1/+2 | |
2002-04-26 | Check the return value of hashmap_first() | Robert James Kaes | 1 | -8/+9 | |
2002-04-25 | The hashmap API changed, so this function needs to be changed as well. | Robert James Kaes | 1 | -11/+11 | |
2002-04-22 | The log_message() function now stores the messages if the configuration | Robert James Kaes | 1 | -4/+60 | |
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. | |||||
2001-11-22 | Reformated text. | Robert James Kaes | 1 | -7/+8 | |
2001-10-25 | Header reorganization. Basically all system headers are now included in | Robert James Kaes | 1 | -3/+1 | |
tinyproxy.h and all the other files include the tinyproxy.h header. This moves all the dependancy issues into one file. | |||||
2001-09-04 | Fixed a format string bug with the syslog function. | Robert James Kaes | 1 | -2/+2 | |
2001-08-29 | Changed how we handle when compiled with debug code. | Robert James Kaes | 1 | -11/+4 | |
2001-08-28 | The logging levels _now_ output the correct information depending on where | Robert James Kaes | 1 | -4/+10 | |
the config file sets it. | |||||
2001-08-27 | Fixed a problem where the connect messages were not getting logged if the | Robert James Kaes | 1 | -3/+2 | |
log level was set to INFO. | |||||
2001-08-26 | Fixed a problem with the new LOG_CONN log level. | Robert James Kaes | 1 | -8/+6 | |