std.experimental.logger default log level is everything

Steven Schveighoffer schveiguy at gmail.com
Fri May 28 18:48:56 UTC 2021


On 5/28/21 1:57 PM, SealabJaster wrote:
> On Friday, 28 May 2021 at 17:29:48 UTC, Steven Schveighoffer wrote:
> 
> I like how it's handled in C#'s Microsoft logging library. Without some 
> form of being able to distinguish between "log from app" and "log from 
> library X/Y/Z", std.logger doesn't seem usable inside of libraries 
> (maybe if the library is a framework, then you could get away with it 
> possibly).
> 
> https://docs.microsoft.com/en-us/dotnet/core/extensions/logging

Unfortunately, std.experimental.logger doesn't seem to have a mechanism 
to filter logs based on source. I think adding a separate filtering 
system (I've used similar things like log4j, and written some myself) 
would be a huge undertaking.

-Steve


More information about the Digitalmars-d mailing list