[Issue 22532] std.experimental.logger Change default log level to LogLevel.warning, or LogLevel.off
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 22 07:10:42 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22532
--- Comment #3 from Robert Schadek <robertschadek at posteo.de> ---
> The fact remains, no library will use logger because of the default verbosity, including mysql-native.
I do not consider that to be a fact, but an opinion, at best a
proof-by-one-example.
mysql-native of course being a developed by you.
> When you don't log anything, and pages of low-level data is spewed to the screen, I think you will more likely think that the library is broken.
I totally disagree, when I include a logging library and it does show me
anything, it is totally broken.
> On the other hand, if you are trying to use the logging facilities, you are already looking at the documentation, and already willing to follow instructions. If you try logging something and it doesn't work, you go back to the already-open doc window, and read about why it didn't work.
This argument can be made for the opposite as well.
IMO we two can not resolve this discussion, clearly you think you are right and
clearly I think I'm right.
If there is ever a push for stuff out of std.experimental to be moved into std,
the default loglevel should be decided by whoever is in charge of phobos at the
time.
--
More information about the Digitalmars-d-bugs
mailing list