Open baronfel opened 1 month ago
Looks like there are several copies of Microsoft.Extensions.Logging
DLLs in VS already; I'd want to be careful to make sure that we don't add a "must match" constraint between MSBuild and VS. Otherwise I'd be ok adding this dependency.
I think we'd only need a dependency on the abstractions assembly, right? That might make navigating the dependency a bit easier.
@teo-tsirpanis - Based on our chat yesterday, tagging you here if you wanted to follow/subscribe
MSBuild ILogger specific concepts like
I took a look yesterday at Microsofts.Extensions.Logging
and there doesn't seem to be a way to arbitrarily extend log messages, in contrast with Serilog.
I've seen this handled a few different ways - mostly either by the State
I mean, yes, I wish Serilog was Microsoft.Extensions.Logging. MEL is meh. 🦺 Hum...Christmas 🎄 is around the corner. 🦺
We use Serilog and provider our own ILog and ILoggingService abstractions where I work and those just call out to Serilog, which calls out to DataDog primarily. ILog = short and sweet type name. ILoggingService = tool to initialize logging, which is required for things like truly modular PowerShell modules written in C#, where you cannot guarantee the logging configuration is loaded on first call to ILog.
from @jzabroski in https://github.com/dotnet/msbuild/issues/10756
This is a recurring problem. The SDK Containers have a simple version of an ILogger<->MEL.ILogger mapping, the SBOM targets do as well, and a number of MSBuild integrations I've written in the past for my own tools (Ionide/FSAutoComplete, Ionide/Proj-Info, etc) all have separate implementations.
We should develop and ship a 'blessed' ILogger implementation that interops with MEL.ILogger, and it should be able to handle MSBuild ILogger specific concepts like