[Dune] [#991] Unified logging tags

Dune flyspray at dune-project.org
Thu Dec 15 00:08:26 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#991 - Unified logging tags
User who did this - Jö Fahlke (joe)

----------
All right, I had a look at Boost.Log.

It is quiet mighty.  It would solve the problem of the logging tags nicely
(the functionality goes by the name of "attributes" there, as in log record
attribute).  Attributes can be added by the logging source ("source" from the
point of view of the logging system, it's where logging messages enter the
system), per-thread, or globally (global is what happens with the logtags).

It also solves many of the same problems that the debug streams attack.

Boost.Log has some disadvantages which make it usuitable for Dune:

 1. It makes heavy use of other Boost libraries, like Preprocessor, Lambda,
    Parameter, and maybe more.  This means, we can't use it as it is.

 2. Reimplementation is also not possible, its far too complex.  And
    reimplementation with reduced functionality and maybe a changed interface
    would probably still require Boost.Preprocessor and Boost.Lambda to be
    usable.

 3. While it can almost replace the debug streams, there is one crucial part
    missing: elimination of output generation always happens at runtime and
    not at compile time.  Well, OK, I'm not so sure how important this feature
    of the debug streams actually is.

I'll look at the others some other time.

----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=991#comment2957

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list