Some time ago I injected NLogs for ILogger see the link bellow.
Prism Unity Register NLog as Microsoft.Extension.Logging.ILogger<T>
No some time after I recongnized that the Classname is wrong. It is always pointing to my Extension instead of the actual class the log is comming from.
2025-06-14 14:55:34.1914|ERROR|14|Microsoft.Extensions.Logging.LoggerExtensions.Log| Error during loading TestClass |System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
ClassXY.Function() |System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
Does anyone know how this can happen.