Serilog
This commit is contained in:
@ -35,7 +35,6 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
|
||||
<PackageReference Include="MetadataExtractor" Version="2.8.0" />
|
||||
<PackageReference Include="Serilog" Version="2.12.0" />
|
||||
<PackageReference Include="ShellProgressBar" Version="5.2.0" />
|
||||
<PackageReference Include="WindowsShortcutFactory" Version="1.1.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="7.0.2" />
|
||||
|
@ -210,7 +210,6 @@ public partial class MapLogic : Shared.Models.Methods.IMapLogic
|
||||
}
|
||||
|
||||
private readonly long _Ticks;
|
||||
private readonly Serilog.ILogger? _Log;
|
||||
private readonly Configuration? _Configuration;
|
||||
private readonly string _EDistanceContentTicksDirectory;
|
||||
private readonly ReadOnlyDictionary<long, int> _PersonKeyToCount;
|
||||
@ -225,10 +224,7 @@ public partial class MapLogic : Shared.Models.Methods.IMapLogic
|
||||
{
|
||||
_Ticks = ticks;
|
||||
_Configuration = configuration;
|
||||
_Log = Serilog.Log.ForContext<MapLogic>();
|
||||
_PropertyConfiguration = propertyConfiguration;
|
||||
if (_Log is null)
|
||||
{ }
|
||||
ReadOnlyDictionary<long, int> readOnlyPersonKeyToCount;
|
||||
List<PersonContainer> notMappedPersonContainers = new();
|
||||
Dictionary<int, List<(string, int)>> skipCollection = new();
|
||||
|
@ -1,10 +0,0 @@
|
||||
namespace View_by_Distance.Map.Models.Stateless;
|
||||
|
||||
internal static class SerilogExtensionMethods
|
||||
{
|
||||
|
||||
internal static void Warn(this Serilog.ILogger log, string messageTemplate) => log.Warning(messageTemplate);
|
||||
|
||||
internal static void Info(this Serilog.ILogger log, string messageTemplate) => log.Information(messageTemplate);
|
||||
|
||||
}
|
Reference in New Issue
Block a user