On 2 December 2015 at 17:31, Hannes Mehnert <[email protected]> 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
[email protected]
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

Reply via email to