Use Microsoft.Extensions.Logging

This commit is contained in:
ClemensFischer 2025-03-31 21:33:52 +02:00
parent 4c5321958a
commit 4a3be1e130
11 changed files with 50 additions and 50 deletions

View file

@ -1,6 +1,6 @@
using System;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
#if WPF
@ -200,7 +200,7 @@ namespace MapControl
}
catch (Exception ex)
{
Debug.WriteLine($"{nameof(WmtsTileLayer)}: {CapabilitiesUri}: {ex.Message}");
ImageLoader.LoggerFactory?.CreateLogger<WmtsTileLayer>()?.LogError(ex, "{uri}", CapabilitiesUri);
}
}
}