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

Re-add thttpd-style logging? #30

Closed
cancer-name opened this issue Sep 20, 2021 · 1 comment
Closed

Re-add thttpd-style logging? #30

cancer-name opened this issue Sep 20, 2021 · 1 comment
Labels

Comments

@cancer-name
Copy link

cancer-name commented Sep 20, 2021

Hi!

I've been using thttpd and switched to merecat for its TLS support. It's been excellent so far, however, it has a completely different logging style, and I can't seem to be able to get thttpd-style logging back, though I would like it because it seems to be more complete, and I have already written a parser around it.

Unfortunately, my knowledge of C is rather limited, and I don't know either codebase well enough.

Therefore, I, and perhaps the author of #25 as well, would love it if it could be added to merecat as well, or possibly some directions as to where one would find the old and new logging code.

Thanks, any help is much appreciated!

@troglobit
Copy link
Owner

I'm not even sure what it is you mean. The thttpd code base was written and maintained by Jef, he had his goals for the project and I have mine. Much of the code has been completely rewritten and extended upon, as you mention, TLS support is just one. I'm personally not a fan of daemon's logging to stdout/stderr, if that's what you mean. That's been removed and generalized over a period of many years and is not coming back. The new logging code uses syslog(), which has support for LOG_PERROR which you can activate when running in the foreground, or preferably, tell your syslog daemon to direct merecat logs to a separate log file or pipe which you can read the logs from.

I'm closing this as wontfix because I don't need or want to go back to the old ways. If you want thttpd style logging, use thttpd.

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

No branches or pull requests

2 participants