فهرست منبع

moved endpoints implementations out of main assembly

randoman 6 سال پیش
والد
کامیت
18276e367f
31فایلهای تغییر یافته به همراه122 افزوده شده و 135 حذف شده
  1. 0 4
      src/Translators/BaiduTranslate/BaiduTranslate.csproj
  2. 4 1
      src/Translators/BaiduTranslate/BaiduTranslateEndpoint.cs
  3. 0 4
      src/Translators/BingTranslate/BingTranslate.csproj
  4. 9 6
      src/Translators/BingTranslate/BingTranslateEndpoint.cs
  5. 0 4
      src/Translators/BingTranslateLegitimate/BingTranslateLegitimate.csproj
  6. 3 1
      src/Translators/BingTranslateLegitimate/BingTranslateLegitimateEndpoint.cs
  7. 0 4
      src/Translators/CustomTranslate/CustomTranslate.csproj
  8. 3 1
      src/Translators/CustomTranslate/CustomTranslateEndpoint.cs
  9. 0 4
      src/Translators/GoogleTranslate/GoogleTranslate.csproj
  10. 9 6
      src/Translators/GoogleTranslate/GoogleTranslateEndpoint.cs
  11. 0 4
      src/Translators/GoogleTranslateLegitimate/GoogleTranslateLegitimate.csproj
  12. 3 1
      src/Translators/GoogleTranslateLegitimate/GoogleTranslateLegitimateEndpoint.cs
  13. 0 4
      src/Translators/LecPowerTranslator15/LecPowerTranslator15.csproj
  14. 3 1
      src/Translators/LecPowerTranslator15/LecPowerTranslator15Endpoint.cs
  15. 1 1
      src/Translators/ReverseTranslator/ReverseTranslatorEndpoint.cs
  16. 0 4
      src/Translators/WatsonTranslate/WatsonTranslate.csproj
  17. 4 1
      src/Translators/WatsonTranslate/WatsonTranslateEndpoint.cs
  18. 0 4
      src/Translators/YandexTranslate/YandexTranslate.csproj
  19. 4 1
      src/Translators/YandexTranslate/YandexTranslateEndpoint.cs
  20. 1 1
      src/XUnity.AutoTranslator.Plugin.BepIn/AutoTranslatorPlugin.cs
  21. 1 1
      src/XUnity.AutoTranslator.Plugin.BepIn/BepInLogger.cs
  22. 57 57
      src/XUnity.AutoTranslator.Plugin.Core/AutoTranslationPlugin.cs
  23. 2 2
      src/XUnity.AutoTranslator.Plugin.Core/Configuration/Settings.cs
  24. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/ConsoleLogger.cs
  25. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Endpoints/AssemblyLoader.cs
  26. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Endpoints/KnownEndpoints.cs
  27. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Extensions/HarmonyInstanceExtensions.cs
  28. 9 9
      src/XUnity.AutoTranslator.Plugin.Core/Hooks/HooksSetup.cs
  29. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Utilities/UtageHelper.cs
  30. 1 1
      src/XUnity.AutoTranslator.Plugin.Core/Web/Internal/ConnectionTrackingWebClient.cs
  31. 3 3
      src/XUnity.AutoTranslator.Plugin.Core/XuaLogger.cs

+ 0 - 4
src/Translators/BaiduTranslate/BaiduTranslate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\BaiduTranslateEndpoint.cs" Link="BaiduTranslateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 4 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/BaiduTranslateEndpoint.cs → src/Translators/BaiduTranslate/BaiduTranslateEndpoint.cs

@@ -6,13 +6,16 @@ using System.Security.Cryptography;
 using System.Text;
 using SimpleJSON;
 using UnityEngine;
+using XUnity.AutoTranslator.Plugin.Core;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace BaiduTranslate
 {
    internal class BaiduTranslateEndpoint : HttpEndpoint
    {

+ 0 - 4
src/Translators/BingTranslate/BingTranslate.csproj

@@ -4,10 +4,6 @@
     <TargetFramework>net35</TargetFramework>
   </PropertyGroup>
 
-  <ItemGroup>
-    <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\BingTranslateEndpoint.cs" Link="BingTranslateEndpoint.cs" />
-  </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 9 - 6
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/BingTranslateEndpoint.cs → src/Translators/BingTranslate/BingTranslateEndpoint.cs

@@ -8,13 +8,16 @@ using System.Reflection;
 using System.Text;
 using SimpleJSON;
 using UnityEngine;
+using XUnity.AutoTranslator.Plugin.Core;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace BingTranslate
 {
    internal class BingTranslateEndpoint : HttpEndpoint
    {
@@ -175,7 +178,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
          }
          catch( Exception e )
          {
-            Logger.Current.Warn( e, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
+            XuaLogger.Current.Warn( e, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
             yield break;
          }
 
@@ -196,14 +199,14 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
          // failure
          if( response.Error != null )
          {
-            Logger.Current.Warn( response.Error, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
+            XuaLogger.Current.Warn( response.Error, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
             yield break;
          }
 
          // failure
          if( response.Result == null )
          {
-            Logger.Current.Warn( null, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
+            XuaLogger.Current.Warn( null, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
             yield break;
          }
 
@@ -216,12 +219,12 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
 
             if( _ig == null || _iid == null )
             {
-               Logger.Current.Warn( "An error occurred while setting up BingTranslate IG/IID. Proceeding without..." );
+               XuaLogger.Current.Warn( "An error occurred while setting up BingTranslate IG/IID. Proceeding without..." );
             }
          }
          catch( Exception e )
          {
-            Logger.Current.Warn( e, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
+            XuaLogger.Current.Warn( e, "An error occurred while setting up BingTranslate IG. Proceeding without..." );
          }
       }
 

+ 0 - 4
src/Translators/BingTranslateLegitimate/BingTranslateLegitimate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\BingTranslateLegitimateEndpoint.cs" Link="BingTranslateLegitimateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 3 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/BingTranslateLegitimateEndpoint.cs → src/Translators/BingTranslateLegitimate/BingTranslateLegitimateEndpoint.cs

@@ -10,11 +10,13 @@ using SimpleJSON;
 using UnityEngine;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace BingTranslateLegitimate
 {
    internal class BingTranslateLegitimateEndpoint : HttpEndpoint
    {

+ 0 - 4
src/Translators/CustomTranslate/CustomTranslate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\CustomTranslateEndpoint.cs" Link="CustomTranslateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 3 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/CustomTranslateEndpoint.cs → src/Translators/CustomTranslate/CustomTranslateEndpoint.cs

@@ -4,10 +4,12 @@ using System.Net;
 using UnityEngine;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace CustomTranslate
 {
    internal class CustomTranslateEndpoint : HttpEndpoint
    {

+ 0 - 4
src/Translators/GoogleTranslate/GoogleTranslate.csproj

@@ -4,10 +4,6 @@
     <TargetFramework>net35</TargetFramework>
   </PropertyGroup>
 
-  <ItemGroup>
-    <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\GoogleTranslateEndpoint.cs" Link="GoogleTranslateEndpoint.cs" />
-  </ItemGroup>
-
   <ItemGroup>
     <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
   </ItemGroup>

+ 9 - 6
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/GoogleTranslateEndpoint.cs → src/Translators/GoogleTranslate/GoogleTranslateEndpoint.cs

@@ -8,13 +8,16 @@ using System.Reflection;
 using System.Text;
 using SimpleJSON;
 using UnityEngine;
+using XUnity.AutoTranslator.Plugin.Core;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace GoogleTranslate
 {
    internal class GoogleTranslateEndpoint : HttpEndpoint
    {
@@ -162,7 +165,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
          }
          catch( Exception e )
          {
-            Logger.Current.Warn( e, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
+            XuaLogger.Current.Warn( e, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
             yield break;
          }
 
@@ -183,14 +186,14 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
          // failure
          if( response.Error != null )
          {
-            Logger.Current.Warn( response.Error, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
+            XuaLogger.Current.Warn( response.Error, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
             yield break;
          }
 
          // failure
          if( response.Result == null )
          {
-            Logger.Current.Warn( null, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
+            XuaLogger.Current.Warn( null, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
             yield break;
          }
 
@@ -222,12 +225,12 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
 
             if( !found )
             {
-               Logger.Current.Warn( "An error occurred while setting up GoogleTranslate TKK. Could not locate TKK value. Using fallback TKK values instead." );
+               XuaLogger.Current.Warn( "An error occurred while setting up GoogleTranslate TKK. Could not locate TKK value. Using fallback TKK values instead." );
             }
          }
          catch( Exception e )
          {
-            Logger.Current.Warn( e, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
+            XuaLogger.Current.Warn( e, "An error occurred while setting up GoogleTranslate TKK. Using fallback TKK values instead." );
          }
       }
 

+ 0 - 4
src/Translators/GoogleTranslateLegitimate/GoogleTranslateLegitimate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-      <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\GoogleTranslateLegitimateEndpoint.cs" Link="GoogleTranslateLegitimateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 3 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/GoogleTranslateLegitimateEndpoint.cs → src/Translators/GoogleTranslateLegitimate/GoogleTranslateLegitimateEndpoint.cs

@@ -10,11 +10,13 @@ using SimpleJSON;
 using UnityEngine;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace GoogleTranslateLegitimate
 {
    internal class GoogleTranslateLegitimateEndpoint : HttpEndpoint
    {

+ 0 - 4
src/Translators/LecPowerTranslator15/LecPowerTranslator15.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\ExtProtocol\LecPowerTranslator15Endpoint.cs" Link="LecPowerTranslator15Endpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 3 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/ExtProtocol/LecPowerTranslator15Endpoint.cs → src/Translators/LecPowerTranslator15/LecPowerTranslator15Endpoint.cs

@@ -2,10 +2,12 @@
 using System.IO;
 using System.Text;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.ExtProtocol;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.ExtProtocol
+namespace LecPowerTranslator15
 {
    internal class LecPowerTranslator15Endpoint : ExtProtocolEndpoint
    {

+ 1 - 1
src/Translators/ReverseTranslator/ReverseTranslatorEndpoint.cs

@@ -5,7 +5,7 @@ using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Endpoints;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.DummyTranslator
+namespace ReverseTranslator
 {
    public class ReverseTranslatorEndpoint : ITranslateEndpoint
    {

+ 0 - 4
src/Translators/WatsonTranslate/WatsonTranslate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Www\WatsonTranslateEndpoint.cs" Link="WatsonTranslateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 4 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Www/WatsonTranslateEndpoint.cs → src/Translators/WatsonTranslate/WatsonTranslateEndpoint.cs

@@ -5,14 +5,17 @@ using System.Net;
 using System.Text;
 using SimpleJSON;
 using UnityEngine;
+using XUnity.AutoTranslator.Plugin.Core;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
 using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Www;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Www
+namespace WatsonTranslate
 {
    internal class WatsonTranslateEndpoint : WwwEndpoint
    {

+ 0 - 4
src/Translators/YandexTranslate/YandexTranslate.csproj

@@ -4,10 +4,6 @@
       <TargetFramework>net35</TargetFramework>
    </PropertyGroup>
 
-   <ItemGroup>
-     <Compile Include="..\..\XUnity.AutoTranslator.Plugin.Core\Endpoints\Http\YandexTranslateEndpoint.cs" Link="YandexTranslateEndpoint.cs" />
-   </ItemGroup>
-
    <ItemGroup>
       <ProjectReference Include="..\..\XUnity.AutoTranslator.Plugin.Core\XUnity.AutoTranslator.Plugin.Core.csproj" />
    </ItemGroup>

+ 4 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/Http/YandexTranslateEndpoint.cs → src/Translators/YandexTranslate/YandexTranslateEndpoint.cs

@@ -5,13 +5,16 @@ using System.Net;
 using System.Text;
 using SimpleJSON;
 using UnityEngine;
+using XUnity.AutoTranslator.Plugin.Core;
 using XUnity.AutoTranslator.Plugin.Core.Configuration;
 using XUnity.AutoTranslator.Plugin.Core.Constants;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints;
+using XUnity.AutoTranslator.Plugin.Core.Endpoints.Http;
 using XUnity.AutoTranslator.Plugin.Core.Extensions;
 using XUnity.AutoTranslator.Plugin.Core.Utilities;
 using XUnity.AutoTranslator.Plugin.Core.Web;
 
-namespace XUnity.AutoTranslator.Plugin.Core.Endpoints.Http
+namespace YandexTranslate
 {
    internal class YandexTranslateEndpoint : HttpEndpoint
    {

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.BepIn/AutoTranslatorPlugin.cs

@@ -22,7 +22,7 @@ namespace XUnity.AutoTranslator.Plugin.BepIn
       {
          _dataFolder = "BepInEx";
          _configPath = Path.Combine( _dataFolder, "AutoTranslatorConfig.ini" );
-         Core.Logger.Current = new BepInLogger();
+         Core.XuaLogger.Current = new BepInLogger();
       }
 
       public IniFile Preferences

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.BepIn/BepInLogger.cs

@@ -7,7 +7,7 @@ using XUnity.AutoTranslator.Plugin.Core.Constants;
 
 namespace XUnity.AutoTranslator.Plugin.BepIn
 {
-   public class BepInLogger : Logger
+   public class BepInLogger : XuaLogger
    {
       public BepInLogger()
       {

+ 57 - 57
src/XUnity.AutoTranslator.Plugin.Core/AutoTranslationPlugin.cs

@@ -140,9 +140,9 @@ namespace XUnity.AutoTranslator.Plugin.Core
       public void Initialize()
       {
          Current = this;
-         if( Logger.Current == null )
+         if( XuaLogger.Current == null )
          {
-            Logger.Current = new ConsoleLogger();
+            XuaLogger.Current = new ConsoleLogger();
          }
 
          try
@@ -151,7 +151,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred during configuration. Shutting plugin down." );
+            XuaLogger.Current.Error( e, "An error occurred during configuration. Shutting plugin down." );
 
             Settings.IsShutdown = true;
             Settings.IsShutdownFatal = true;
@@ -177,7 +177,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while constructing endpoints. Shutting plugin down." );
+            XuaLogger.Current.Error( e, "An error occurred while constructing endpoints. Shutting plugin down." );
 
             Settings.IsShutdown = true;
             Settings.IsShutdownFatal = true;
@@ -196,7 +196,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An unexpected error occurred during initialization of endpoint." );
+            XuaLogger.Current.Error( e, "An unexpected error occurred during initialization of endpoint." );
          }
 
          // TODO: Perhaps some bleeding edge check to see if this is required?
@@ -213,12 +213,12 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred during while saving configuration." );
+            XuaLogger.Current.Error( e, "An error occurred during while saving configuration." );
          }
 
          if( !LanguageHelper.IsFromLanguageSupported( Settings.FromLanguage ) )
          {
-            Logger.Current.Error( $"The plugin has been configured to use the 'FromLanguage={Settings.FromLanguage}'. This language is not supported. Shutting plugin down." );
+            XuaLogger.Current.Error( $"The plugin has been configured to use the 'FromLanguage={Settings.FromLanguage}'. This language is not supported. Shutting plugin down." );
 
             _endpoint = null;
             Settings.IsShutdown = true;
@@ -232,7 +232,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             var available = Font.GetOSInstalledFontNames();
             if( !available.Contains( Settings.OverrideFont ) )
             {
-               Logger.Current.Error( $"The specified override font is not available. Available fonts: " + string.Join( ", ", available ) );
+               XuaLogger.Current.Error( $"The specified override font is not available. Available fonts: " + string.Join( ", ", available ) );
                Settings.OverrideFont = null;
             }
             else
@@ -249,7 +249,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while settings up texture scene-load scans." );
+            XuaLogger.Current.Error( e, "An error occurred while settings up texture scene-load scans." );
          }
 
          LoadTranslations();
@@ -326,7 +326,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An unexpected error occurred while removing GC'ed resources." );
+               XuaLogger.Current.Error( e, "An unexpected error occurred while removing GC'ed resources." );
             }
 
             Thread.Sleep( 1000 * 60 );
@@ -366,21 +366,21 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while saving translations to disk." );
+            XuaLogger.Current.Error( e, "An error occurred while saving translations to disk." );
          }
       }
 
       private void EnableSceneLoadScan()
       {
-         Logger.Current.Info( "Probing whether OnLevelWasLoaded or SceneManager is supported in this version of Unity. Any warnings related to OnLevelWasLoaded coming from Unity can safely be ignored." );
+         XuaLogger.Current.Info( "Probing whether OnLevelWasLoaded or SceneManager is supported in this version of Unity. Any warnings related to OnLevelWasLoaded coming from Unity can safely be ignored." );
          if( Features.SupportsScenes )
          {
-            Logger.Current.Info( "SceneManager is supported in this version of Unity." );
+            XuaLogger.Current.Info( "SceneManager is supported in this version of Unity." );
             EnableSceneLoadScanInternal();
          }
          else
          {
-            Logger.Current.Info( "SceneManager is not supported in this version of Unity. Falling back to OnLevelWasLoaded and Application level API." );
+            XuaLogger.Current.Info( "SceneManager is not supported in this version of Unity. Falling back to OnLevelWasLoaded and Application level API." );
          }
       }
 
@@ -409,13 +409,13 @@ namespace XUnity.AutoTranslator.Plugin.Core
          {
             if( Settings.EnableTextureScanOnSceneLoad && ( Settings.EnableTextureDumping || Settings.EnableTextureTranslation ) )
             {
-               Logger.Current.Info( "Performing texture lookup during scene load..." );
+               XuaLogger.Current.Info( "Performing texture lookup during scene load..." );
                var startTime = Time.realtimeSinceStartup;
 
                ManualHookForTextures();
 
                var endTime = Time.realtimeSinceStartup;
-               Logger.Current.Info( $"Finished texture lookup (took {Math.Round( endTime - startTime, 2 )} seconds)" );
+               XuaLogger.Current.Info( $"Finished texture lookup (took {Math.Round( endTime - startTime, 2 )} seconds)" );
             }
          }
       }
@@ -453,7 +453,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while loading translations." );
+            XuaLogger.Current.Error( e, "An error occurred while loading translations." );
          }
       }
 
@@ -483,7 +483,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             else
             {
-               Logger.Current.Warn( $"Image not loaded (unknown hash): {fullFileName}." );
+               XuaLogger.Current.Warn( $"Image not loaded (unknown hash): {fullFileName}." );
                return;
             }
 
@@ -495,12 +495,12 @@ namespace XUnity.AutoTranslator.Plugin.Core
             if( Settings.LoadUnmodifiedTextures || isModified )
             {
                RegisterTranslatedImage( key, data );
-               Logger.Current.Debug( $"Image loaded: {fullFileName}." );
+               XuaLogger.Current.Debug( $"Image loaded: {fullFileName}." );
             }
             else
             {
                RegisterUntranslatedImage( key );
-               Logger.Current.Warn( $"Image not loaded (unmodified): {fullFileName}." );
+               XuaLogger.Current.Warn( $"Image not loaded (unmodified): {fullFileName}." );
             }
 
             //if( Settings.DeleteUnmodifiedTextures && !isModified )
@@ -518,7 +518,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          else
          {
-            Logger.Current.Warn( $"Image not loaded (no hash): {fullFileName}." );
+            XuaLogger.Current.Warn( $"Image not loaded (no hash): {fullFileName}." );
          }
       }
 
@@ -541,7 +541,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
          var fullName = Path.Combine( root, fileName );
          File.WriteAllBytes( fullName, data );
-         Logger.Current.Info( "Dumped texture file: " + fileName );
+         XuaLogger.Current.Info( "Dumped texture file: " + fileName );
 
          if( Settings.LoadUnmodifiedTextures )
          {
@@ -567,7 +567,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
       {
          if( File.Exists( fullFileName ) )
          {
-            Logger.Current.Debug( $"Loading texts: {fullFileName}." );
+            XuaLogger.Current.Debug( $"Loading texts: {fullFileName}." );
 
             string[] translations = File.ReadAllLines( fullFileName, Encoding.UTF8 );
             foreach( string translation in translations )
@@ -649,7 +649,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
          }
 
-         Logger.Current.Debug( "Queued translation for: " + lookupKey );
+         XuaLogger.Current.Debug( "Queued translation for: " + lookupKey );
 
          ongoingJob = new TranslationJob( key );
          if( ui != null )
@@ -687,7 +687,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"SPAM DETECTED: Translations were queued every second for more than {Settings.MaximumConsecutiveSecondsTranslated} consecutive seconds. Shutting down plugin." );
+               XuaLogger.Current.Error( $"SPAM DETECTED: Translations were queued every second for more than {Settings.MaximumConsecutiveSecondsTranslated} consecutive seconds. Shutting down plugin." );
             }
 
          }
@@ -723,7 +723,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"SPAM DETECTED: Translations were queued every frame for more than {Settings.MaximumConsecutiveFramesTranslated} consecutive frames. Shutting down plugin." );
+               XuaLogger.Current.Error( $"SPAM DETECTED: Translations were queued every frame for more than {Settings.MaximumConsecutiveFramesTranslated} consecutive frames. Shutting down plugin." );
             }
 
          }
@@ -779,7 +779,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"SPAM DETECTED: Text that is 'scrolling in' is being translated. Disable that feature. Shutting down plugin." );
+               XuaLogger.Current.Error( $"SPAM DETECTED: Text that is 'scrolling in' is being translated. Disable that feature. Shutting down plugin." );
             }
          }
          else
@@ -801,7 +801,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
             Settings.IsShutdown = true;
             Settings.IsShutdownFatal = true;
-            Logger.Current.Error( $"SPAM DETECTED: More than {Settings.MaxUnstartedJobs} queued for translations due to unknown reasons. Shutting down plugin." );
+            XuaLogger.Current.Error( $"SPAM DETECTED: More than {Settings.MaxUnstartedJobs} queued for translations due to unknown reasons. Shutting down plugin." );
          }
 
          var previousIdx = ( (int)( Time.time - Time.deltaTime ) ) % Settings.TranslationQueueWatchWindow;
@@ -829,7 +829,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"SPAM DETECTED: More than {Settings.MaxTranslationsQueuedPerSecond} translations per seconds queued for a {Settings.MaxSecondsAboveTranslationThreshold} second period. Shutting down plugin." );
+               XuaLogger.Current.Error( $"SPAM DETECTED: More than {Settings.MaxTranslationsQueuedPerSecond} translations per seconds queued for a {Settings.MaxSecondsAboveTranslationThreshold} second period. Shutting down plugin." );
             }
          }
          else
@@ -914,7 +914,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
                   var end = Time.realtimeSinceStartup;
                   var delta = Math.Round( end - start, 2 );
 
-                  Logger.Current.Debug( $"Update SpriteRenderers caused by {_requireSpriteRendererCheckCausedBy} component (took " + delta + " seconds)" );
+                  XuaLogger.Current.Debug( $"Update SpriteRenderers caused by {_requireSpriteRendererCheckCausedBy} component (took " + delta + " seconds)" );
                }
                finally
                {
@@ -1142,7 +1142,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error occurred while setting text on a component." );
+               XuaLogger.Current.Error( e, "An error occurred while setting text on a component." );
             }
             finally
             {
@@ -1274,7 +1274,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error occurred while dumping texture." );
+               XuaLogger.Current.Error( e, "An error occurred while dumping texture." );
             }
          }
 
@@ -1286,7 +1286,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error occurred while translating texture." );
+               XuaLogger.Current.Error( e, "An error occurred while translating texture." );
             }
          }
       }
@@ -1443,7 +1443,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
             if( forceReload )
             {
-               Logger.Current.Info( $"Reloaded texture: {texture.name} ({key})." );
+               XuaLogger.Current.Info( $"Reloaded texture: {texture.name} ({key})." );
             }
          }
          finally
@@ -1927,7 +1927,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An unexpected error occurred during plugin initialization." );
+               XuaLogger.Current.Error( e, "An unexpected error occurred during plugin initialization." );
             }
          }
       }
@@ -1940,7 +1940,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An unexpected error occurred during plugin start." );
+            XuaLogger.Current.Error( e, "An unexpected error occurred during plugin start." );
          }
       }
 
@@ -2015,7 +2015,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred in Update callback. " );
+            XuaLogger.Current.Error( e, "An error occurred in Update callback. " );
          }
       }
 
@@ -2041,16 +2041,16 @@ namespace XUnity.AutoTranslator.Plugin.Core
             {
                _consecutiveErrors = 0;
                Settings.IsShutdown = false;
-               Logger.Current.Info( "Rebooted Auto Translator." );
+               XuaLogger.Current.Info( "Rebooted Auto Translator." );
             }
             else
             {
-               Logger.Current.Info( "Cannot reboot Auto Translator because the error that caused the shutdown is bad behaviour by the game." );
+               XuaLogger.Current.Info( "Cannot reboot Auto Translator because the error that caused the shutdown is bad behaviour by the game." );
             }
          }
          else
          {
-            Logger.Current.Info( "Cannot reboot Auto Translator because it has not been shut down." );
+            XuaLogger.Current.Info( "Cannot reboot Auto Translator because it has not been shut down." );
          }
       }
 
@@ -2084,7 +2084,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
                   _availableBatchOperations--;
 
                   var untranslatedText = batch.GetFullTranslationKey();
-                  Logger.Current.Debug( "Starting translation for: " + untranslatedText );
+                  XuaLogger.Current.Debug( "Starting translation for: " + untranslatedText );
                   StartCoroutine( _endpoint.Translate( untranslatedText, Settings.FromLanguage, Settings.Language, translatedText => OnBatchTranslationCompleted( batch, translatedText ),
                   ( msg, e ) => OnTranslationFailed( batch, msg, e ) ) );
                }
@@ -2106,7 +2106,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
                _ongoingJobs[ key ] = job;
 
                var untranslatedText = job.Key.GetDictionaryLookupKey();
-               Logger.Current.Debug( "Starting translation for: " + untranslatedText );
+               XuaLogger.Current.Debug( "Starting translation for: " + untranslatedText );
                StartCoroutine( _endpoint.Translate( untranslatedText, Settings.FromLanguage, Settings.Language, translatedText => OnSingleTranslationCompleted( job, translatedText ),
                ( msg, e ) => OnTranslationFailed( job, msg, e ) ) );
             }
@@ -2123,7 +2123,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
       private void OnBatchTranslationCompleted( TranslationBatch batch, string translatedTextBatch )
       {
          _consecutiveErrors = 0;
-         Logger.Current.Debug( $"Translation for '{batch.GetFullTranslationKey()}' succeded. Result: {translatedTextBatch}" );
+         XuaLogger.Current.Debug( $"Translation for '{batch.GetFullTranslationKey()}' succeded. Result: {translatedTextBatch}" );
 
          var succeeded = batch.MatchWithTranslations( translatedTextBatch );
          if( succeeded )
@@ -2167,7 +2167,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
                _ongoingJobs.Remove( key );
             }
 
-            Logger.Current.Error( "A batch operation failed. Disabling batching and restarting failed jobs." );
+            XuaLogger.Current.Error( "A batch operation failed. Disabling batching and restarting failed jobs." );
          }
 
          if( !Settings.IsShutdown )
@@ -2176,7 +2176,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             {
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"Maximum translations ({Settings.MaxTranslationsBeforeShutdown}) per session reached. Shutting plugin down." );
+               XuaLogger.Current.Error( $"Maximum translations ({Settings.MaxTranslationsBeforeShutdown}) per session reached. Shutting plugin down." );
 
                _unstartedJobs.Clear();
                _completedJobs.Clear();
@@ -2188,7 +2188,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
       private void OnSingleTranslationCompleted( TranslationJob job, string translatedText )
       {
          Settings.TranslationCount++;
-         Logger.Current.Debug( $"Translation for '{job.Key.GetDictionaryLookupKey()}' succeded. Result: {translatedText}" );
+         XuaLogger.Current.Debug( $"Translation for '{job.Key.GetDictionaryLookupKey()}' succeded. Result: {translatedText}" );
 
          _consecutiveErrors = 0;
 
@@ -2214,7 +2214,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             {
                Settings.IsShutdown = true;
                Settings.IsShutdownFatal = true;
-               Logger.Current.Error( $"Maximum translations ({Settings.MaxTranslationsBeforeShutdown}) per session reached. Shutting plugin down." );
+               XuaLogger.Current.Error( $"Maximum translations ({Settings.MaxTranslationsBeforeShutdown}) per session reached. Shutting plugin down." );
 
                _unstartedJobs.Clear();
                _completedJobs.Clear();
@@ -2227,11 +2227,11 @@ namespace XUnity.AutoTranslator.Plugin.Core
       {
          if( e == null )
          {
-            Logger.Current.Error( error );
+            XuaLogger.Current.Error( error );
          }
          else
          {
-            Logger.Current.Error( e, error );
+            XuaLogger.Current.Error( e, error );
          }
 
          Settings.TranslationCount++; // counts as a translation
@@ -2245,7 +2245,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             if( _consecutiveErrors >= Settings.MaxErrors )
             {
                Settings.IsShutdown = true;
-               Logger.Current.Error( $"{Settings.MaxErrors} or more consecutive errors occurred. Shutting down plugin." );
+               XuaLogger.Current.Error( $"{Settings.MaxErrors} or more consecutive errors occurred. Shutting down plugin." );
 
                _unstartedJobs.Clear();
                _completedJobs.Clear();
@@ -2258,11 +2258,11 @@ namespace XUnity.AutoTranslator.Plugin.Core
       {
          if( e == null )
          {
-            Logger.Current.Error( error );
+            XuaLogger.Current.Error( error );
          }
          else
          {
-            Logger.Current.Error( e, error );
+            XuaLogger.Current.Error( e, error );
          }
 
          Settings.TranslationCount++; // counts as a translation
@@ -2280,7 +2280,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             if( _consecutiveErrors >= Settings.MaxErrors )
             {
                Settings.IsShutdown = true;
-               Logger.Current.Error( $"{Settings.MaxErrors} or more consecutive errors occurred. Shutting down plugin." );
+               XuaLogger.Current.Error( $"{Settings.MaxErrors} or more consecutive errors occurred. Shutting down plugin." );
 
                _unstartedJobs.Clear();
                _completedJobs.Clear();
@@ -2458,7 +2458,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             _overrideFont = !_overrideFont;
 
             var objects = ObjectReferenceMapper.GetAllRegisteredObjects();
-            Logger.Current.Info( $"Toggling fonts of {objects.Count} objects." );
+            XuaLogger.Current.Info( $"Toggling fonts of {objects.Count} objects." );
 
             if( _overrideFont )
             {
@@ -2513,7 +2513,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
          _isInTranslatedMode = !_isInTranslatedMode;
          var objects = ObjectReferenceMapper.GetAllRegisteredObjects();
 
-         Logger.Current.Info( $"Toggling translations of {objects.Count} objects." );
+         XuaLogger.Current.Info( $"Toggling translations of {objects.Count} objects." );
 
          if( _isInTranslatedMode )
          {
@@ -2605,7 +2605,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error while copying text to clipboard." );
+               XuaLogger.Current.Error( e, "An error while copying text to clipboard." );
             }
             finally
             {
@@ -2753,7 +2753,7 @@ namespace XUnity.AutoTranslator.Plugin.Core
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error occurred while disposing endpoint." );
+               XuaLogger.Current.Error( e, "An error occurred while disposing endpoint." );
             }
          }
       }

+ 2 - 2
src/XUnity.AutoTranslator.Plugin.Core/Configuration/Settings.cs

@@ -101,7 +101,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Configuration
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while getting application name." );
+            XuaLogger.Current.Error( e, "An error occurred while getting application name." );
          }
 
 
@@ -167,7 +167,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Configuration
          {
             WhitespaceRemovalStrategy = WhitespaceHandlingStrategy.TrimPerNewline;
 
-            Logger.Current.Warn( e, "An error occurred while configuring 'WhitespaceRemovalStrategy'. Using default." );
+            XuaLogger.Current.Warn( e, "An error occurred while configuring 'WhitespaceRemovalStrategy'. Using default." );
          }
 
          UserAgent = Config.Current.Preferences[ "Http" ][ "UserAgent" ].GetOrDefault( string.Empty );

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/ConsoleLogger.cs

@@ -2,7 +2,7 @@
 
 namespace XUnity.AutoTranslator.Plugin.Core
 {
-   internal class ConsoleLogger : Logger
+   internal class ConsoleLogger : XuaLogger
    {
       protected override void Log( LogLevel level, string message )
       {

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/AssemblyLoader.cs

@@ -31,7 +31,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints
             }
             catch( Exception e )
             {
-               Logger.Current.Error( e, "An error occurred while loading types in assembly: " + file );
+               XuaLogger.Current.Error( e, "An error occurred while loading types in assembly: " + file );
             }
          }
 

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Endpoints/KnownEndpoints.cs

@@ -48,7 +48,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Endpoints
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "Could not instantiate class: " + type.Name );
+            XuaLogger.Current.Error( e, "Could not instantiate class: " + type.Name );
             return;
          }
 

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Extensions/HarmonyInstanceExtensions.cs

@@ -30,7 +30,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Extensions
          }
          catch( Exception e )
          {
-            Logger.Current.Warn( e, "An error occurred while patching a property/method on a class. Failing class: " + type.Name );
+            XuaLogger.Current.Warn( e, "An error occurred while patching a property/method on a class. Failing class: " + type.Name );
          }
       }
    }

+ 9 - 9
src/XUnity.AutoTranslator.Plugin.Core/Hooks/HooksSetup.cs

@@ -58,7 +58,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up text getter compat hooks." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up text getter compat hooks." );
          }
       }
 
@@ -73,7 +73,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up image hooks." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up image hooks." );
          }
       }
 
@@ -89,7 +89,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up hooks for UGUI." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up hooks for UGUI." );
          }
 
          try
@@ -101,7 +101,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up hooks for TextMeshPro." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up hooks for TextMeshPro." );
          }
 
          try
@@ -113,7 +113,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up hooks for NGUI." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up hooks for NGUI." );
          }
 
          try
@@ -125,7 +125,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up hooks for IMGUI." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up hooks for IMGUI." );
          }
 
          try
@@ -137,7 +137,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, "An error occurred while setting up hooks for Utage." );
+            XuaLogger.Current.Error( e, "An error occurred while setting up hooks for Utage." );
          }
 
       }
@@ -175,7 +175,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
                                     addMethod.Invoke( component, new object[] { callback } );
                                  }
 
-                                 Logger.Current.Info( eventName + " was hooked by external plugin." );
+                                 XuaLogger.Current.Info( eventName + " was hooked by external plugin." );
                                  return true;
                               }
                               catch { }
@@ -188,7 +188,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
          }
          catch( Exception e )
          {
-            Logger.Current.Error( e, $"An error occurred while setting up override hooks for '{eventName}'." );
+            XuaLogger.Current.Error( e, $"An error occurred while setting up override hooks for '{eventName}'." );
          }
 
          return false;

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Utilities/UtageHelper.cs

@@ -56,7 +56,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Utilities
             }
             catch( Exception e )
             {
-               Logger.Current.Warn( e, "An error occurred while setting up scenario set." );
+               XuaLogger.Current.Warn( e, "An error occurred while setting up scenario set." );
             }
          }
 

+ 1 - 1
src/XUnity.AutoTranslator.Plugin.Core/Web/Internal/ConnectionTrackingWebClient.cs

@@ -374,7 +374,7 @@ namespace XUnity.AutoTranslator.Plugin.Core.Web.Internal
                foreach( var idleEntry in idleEntries )
                {
                   ActiveConnections.Remove( idleEntry.Key );
-                  Logger.Current.Debug( $"Closing connections to endpoint '{idleEntry.Key}' due to inactivity." );
+                  XuaLogger.Current.Debug( $"Closing connections to endpoint '{idleEntry.Key}' due to inactivity." );
                }
             }
          }

+ 3 - 3
src/XUnity.AutoTranslator.Plugin.Core/Logger.cs → src/XUnity.AutoTranslator.Plugin.Core/XuaLogger.cs

@@ -7,11 +7,11 @@ using XUnity.AutoTranslator.Plugin.Core.Constants;
 
 namespace XUnity.AutoTranslator.Plugin.Core
 {
-   public abstract class Logger
+   public abstract class XuaLogger
    {
-      public static Logger Current;
+      public static XuaLogger Current;
 
-      public Logger()
+      public XuaLogger()
       {
          RespectSettings = true;
       }