https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.trace.tracewarning?view=netframework-4.8.1&viewFallbackFrom=net-10.0
Trace.TraceWarning Method (System.Diagnostics) | Microsoft Learn
Writes warning information to the trace listeners in the Listeners collection.
system diagnosticstracemethodmicrosoftlearn