httpd icon indicating copy to clipboard operation
httpd copied to clipboard

Make using errorlog provider and file at the same time possible

Open TomasKorbar opened this issue 2 years ago • 2 comments

This commit allows user to use errorlog provider and file or pipe to utility at the same time. Previous behaviour of ErrorLog directive is kept intact.

TomasKorbar avatar Apr 20 '23 15:04 TomasKorbar

Hi guys, I tested this feature on my setup with virtual hosts and several log files and everything seems to be working. ErrorLog directive can now be used twice with 1 file or pipe to executable and 1 use of errorlog provider. Old behaviour should stay intact. I am open to implement whatever changes you suggest.

Example use:

ErrorLog "| /usr/bin/tee logs/error_log1 logs/error_log2"
ErrorLog syslog:local6

Will make httpd log into both error_log1 and error_log2 while still logging into the syslog. This feature is usefull when you want to for example log to syslog while still keeping backup copy.

Could you guide me on how to execute the test suite? Can i provide a test for this?

Thanks for any help.

TomasKorbar avatar Apr 21 '23 10:04 TomasKorbar

Tomas, if you do:

svn co https://svn.apache.org/repos/asf/httpd/test/framework/ test/framework
./configure --with-test-suite=test/framework

you can then run the test suite just by doing "make check". However there are not many tests around logging atm

notroj avatar Apr 21 '23 13:04 notroj