I've been building a library (NuGet package as I'm in the C# world here) & I want to add logging so the consumer of the library can optionally provide some logger to the library. However, there are many logging libraries out there with different interfaces, so I'm not sure the best way to go about it.
I'm leaning towards requiring the ILogger interface from the Microsoft.Extensions namespace which I know some other libraries like Serilogger provide implementations for. But it would still only be a very select few logging libraries that could be used. Is it acceptable to say "You must use an ILogger instance if you want logging from my library"? Do other library makers provide logging from within their library? Or maybe having logging in NuGet libraries isn't standard. Just looking for advice/clarity around the topic, thanks in advance.