From: Dean M. B. <mik...@gm...> - 2007-05-23 14:28:47
|
Hi Glyn! On 5/23/07, Glyn Matthews <gly...@gm...> wrote: > > On 23 May 2007 00:49:24 +0200, Peter Simons < si...@cr...> wrote: > > > 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? > > > Yes. I think more generally its important at this stage to determine > clearly our policies w.r.t. things like logging, thread-safety, security > because we have to ensure that we don't hinder boost.network users from > creating what Dean described as "Custom Web Services". Someone is always > going to have, for example, complex logging requirements. Do we just > provide a minimal system and say "X, Y and Z is up to you" or is it possible > to anticipate as far as possible what library users might need? I'd prefer, > if possible, the former and I think everyone agrees with this, but it does > require that we be careful. > I agree with providing a minimal yet comprehensive network library completely. Logging is not within the realm of network operations -- and I have absolutely no intention of getting into (say, even near) the Boost.Log discussion, which I honestly think is going nowhere. Let's let the users choose how they want to log things and just throw meaningful exceptions when there are exceptional conditions met in the code. :) > Forgive the sometimes basic questions, I am not as experienced with C++ > networking as other people on this list and I'm trying to understand how > this will work conceptually. > I don't know about the others, but I certainly appreciate well asked questions. :) I don't necessarily love answering, but I do love questions nonetheless. :D So please, if you have questions, don't hesitate to ask away. :-) -- Dean Michael C. Berris http://cplusplus-soup.blogspot.com/ mikhailberis AT gmail DOT com +63 928 7291459 |