Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make using errorlog provider and file at the same time possible #357

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

TomasKorbar
Copy link

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.

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
Copy link
Author

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.

@notroj
Copy link
Collaborator

notroj commented Apr 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants