mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 13:14:17 +01:00
Use custom logger everywhere.
This commit is contained in:
parent
fabbeeae13
commit
72ef666d51
87 changed files with 276 additions and 371 deletions
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Configuration;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
|
|
@ -78,7 +77,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
{
|
||||
void HandleDeserializationError( object? sender, ErrorEventArgs errorArgs )
|
||||
{
|
||||
PluginLog.Error(
|
||||
Penumbra.Log.Error(
|
||||
$"Error parsing Configuration at {errorArgs.ErrorContext.Path}, using default or migrating:\n{errorArgs.ErrorContext.Error}" );
|
||||
errorArgs.ErrorContext.Handled = true;
|
||||
}
|
||||
|
|
@ -116,7 +115,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save plugin configuration:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save plugin configuration:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue