On Tuesday, 15 October 2013 at 13:52:17 UTC, Robert Schadek wrote:
I think this is good, as it gives you a way to quite libraries
down. The
idea behind the free standing "log" function is to provide an
ultra easy
way to log. It is not meant to be used for the 2<<31 line
program. In
that case you will properly have very specific needs on how to
log.
Hence implement the abstract Logger class to your needs.
I'll consider any logging library that forces me to use logger
instance explicitly for typical tasks a failure. Once the system
is configured upon program startup, using free functions and/or
system-wide defaults should be enough.