
----- "Tigran Hayrapetyan" <tigran.human@gmail.com> a écrit :
Hello dear Boost community
(...) Existing logging libraries which I used, are writing log messages linearly, just one after another. In contrast, as we know, almost any application's working structure is not linear, but hierarchical instead, i.e. functions which call other functions, and so on. (...)
Have you tried Boost.Log and its attributes ?
http://boost-log.sourceforge.net/libs/log/doc/html/log/detailed/attributes.html#log.detailed.attributes.named_scope<http://boost-log.sourceforge.net/libs/log/doc/html/log/detailed/attributes.html#log.detailed.attributes.named_scope> http://boost-log.sourceforge.net/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.scoped_attributes<http://boost-log.sourceforge.net/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.scoped_attributes>
Ivan
As I understand, that features of Boost.Log library are for managing attributes of log messages, and not log messages (or their placements) themselves. So the log messages are still placed linearly, and my proposal is to place them hierarchically. Tigran