
Felipe Magno de Almeida wrote:
On 11/19/05, Yuval Ronen <ronen_yuval@yahoo.com> wrote:
Hex dump is useful, absolutely, but so is a database access library, but we don't wish it would be a part of the log library, do we? This may be a rough analogy, but as several stated, text formatting of data structures is something that a log *uses*, not *implements*. Sorry for butting in like this, but I strongly feel that hex dump is out of scope for a logging library, and would waste John's precious time, while he could spend it on something that belongs to logging.
Then, maybe, it would be interesting to have one formatting layer in the logging library. Like archives, that is a very nice solution to formatting in the serialization library. What is your opinion?
I don't really know the serialization library, so I can't comment about it. If I understand correctly (and I'm certainly not sure of it), the serialization layer you mentioned is about converting a data structure to an XML representation, and back. That is very different from the log library. The XML representation is used solely for serialization purposes and so it's logical that the serialization library will supply this layer. The log library, on the other hand, uses the general iostream textual representation, so I don't really see what such a formatting layer would do, and what its benefits would be. Yuval