[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Thoughts on logging

On 2 December 2015 at 17:31, Hannes Mehnert <hannes@xxxxxxxxxxx> wrote:
> Hi,
> On 12/02/2015 17:24, Thomas Leonard wrote:
>> - Although it's convenient for existing code to make its own loggers
>> (and we should support this), for new code we might prefer to take a
>> LOG module as a functor argument
> why "might prefer to take a LOG functor"?  I had the impression that
> separating the log source from the reporter would be sufficient for all
> scenarios.

David Sheets mentioned the example of testing a protocol with two
endpoints, each with their own logger, for example. It also allows
libraries to avoid depending on any particular library, if they prefer
not to do that. And, it prevents libraries from using their loggers
before the logging system is configured.

Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.