From: Peter S. <si...@cr...> - 2007-05-22 22:49:32
|
Hi Glyn, you wondered: > I do notice [mini-httpd uses] John Torjo's logging library. I > may have missed something but will this be present in a future > version of boost? As far as I know, the original Boost.Log library was rejected during the review. A new proposal recently showed up on the developer's mailing list. I don't know much about it, though. Personally, I access logging functions only through macros in my programs to make sure the source code doesn't depend on any concrete library. I hardly ever need sophisticated features. On Unix systems, all I really need is syslog(3). :-) > Is it your intention to use this for boost.network too? No. My preference would be that logging is the responsibility of the users of this library. With the exception of debugging, I wouldn't know what kind of log messages a networking library would need to write. Providing functions that pretty-print data structures into strings, say an Apache-style access log entry, is one thing, but actually writing these strings to some output device is another thing. How to do that is a problem ::main() should solve. Does that sound reasonable? Best regards, Peter |