Closed mrb closed 13 years ago
Hello Michael,
Thanks a lot for this first contribution, I'd say it's a pretty good start! I'll merge this tomorrow and work a little more on it, a few things need to be changed before it's pushed:
body
into msg
, as msg
has a fixed size and could overflow. We're writing it directly anyway, so body
might as well be passed to printf
.fflush
after each request too, I'll have to see what can be done about that.Please feel free to suggest anything, not just items that are on the todo/ideas list. It's a young project and there is certainly a lot of things to do; I'm mostly adding what I think is interesting, and listening to possible users. The code base is small enough that a lot of features can be added or changed quickly.
You have already included a log level, and if you feel that some items could go to a different level because it's too verbose, feel free to just open a ticket. Same goes for log files, maybe there could be a different log file for HTTP requests? All suggestions welcome :-)
Cheers, Nicolas
Nicolas,
Thanks! I'll implement a couple of your suggestions as I can and push again. Do you think you want to specify the server verbosity in the config file? I can include that as well.
In terms of what to log where, I'm totally open.
Mike
Hey There:
Your project is coming along nicely! Thanks for working on this, it's something that's been needed for a while. I had some free time and I'm trying to get my "C" back after a long time, so I put together this simple logging class that is only partially formed and dropped it into the project. Maybe it will be of use to you or maybe not, but I thought you'd like to check it out.
Mike