troglobit/merecat

Re-add thttpd-style logging?

cancer-name opened this issue · 1 comments

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!

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.