Explorar o código

Move Logger class to BepInEx.Logging

ghorsington %!s(int64=5) %!d(string=hai) anos
pai
achega
65c07a3cb4

+ 1 - 0
BepInEx.Preloader/Patching/AssemblyPatcher.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Reflection;
+using BepInEx.Logging;
 using BepInEx.Preloader.RuntimeFixes;
 using Mono.Cecil;
 

+ 1 - 0
BepInEx/Bootstrap/Chainloader.cs

@@ -8,6 +8,7 @@ using System.Text;
 using BepInEx.Logging;
 using UnityEngine;
 using UnityInjector.ConsoleUtil;
+using Logger = BepInEx.Logging.Logger;
 
 namespace BepInEx.Bootstrap
 {

+ 1 - 0
BepInEx/Bootstrap/TypeLoader.cs

@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.IO;
 using System.Reflection;
 using System.Text;
+using BepInEx.Logging;
 
 namespace BepInEx.Bootstrap
 {

+ 1 - 1
BepInEx/Contract/BaseUnityPlugin.cs

@@ -14,7 +14,7 @@ namespace BepInEx
 		{
 			var metadata = MetadataHelper.GetMetadata(this);
 
-			Logger = BepInEx.Logger.CreateLogSource(metadata.Name);
+			Logger = Logging.Logger.CreateLogSource(metadata.Name);
 		}
 	}
 }

+ 1 - 2
BepInEx/Logging/Logger.cs

@@ -1,8 +1,7 @@
 using System;
 using System.Collections.Generic;
-using BepInEx.Logging;
 
-namespace BepInEx
+namespace BepInEx.Logging
 {
 	/// <summary>
 	/// A static <see cref="BaseLogger"/> instance.