diff --git a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/Plugin.cs b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/Plugin.cs index ab58f15..2708f1b 100644 --- a/BepInEx.Templates/templates/BepInEx5.PluginTemplate/Plugin.cs +++ b/BepInEx.Templates/templates/BepInEx5.PluginTemplate/Plugin.cs @@ -5,9 +5,12 @@ namespace BepInEx5.PluginTemplate; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BaseUnityPlugin { + internal static new ManualLogSource Logger; + private void Awake() { // Plugin startup logic + this.Logger = Logger; Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); } } diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/Plugin.cs b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/Plugin.cs index 16868b0..0092623 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/Plugin.cs +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.CoreCLR/Plugin.cs @@ -6,9 +6,12 @@ namespace BepInEx6.PluginTemplate.NET.CoreCLR; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BasePlugin { + internal static new ManualLogSource Log; + public override void Load() { // Plugin startup logic + this.Log = base.Log; Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); } } diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/Plugin.cs b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/Plugin.cs index 183085d..f26d5ac 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/Plugin.cs +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.NET.Framework/Plugin.cs @@ -6,9 +6,12 @@ namespace BepInEx6.PluginTemplate.NET.Framework; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BasePlugin { + internal static new ManualLogSource Log; + public override void Load() { // Plugin startup logic + this.Log = base.Log; Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); } } diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/Plugin.cs b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/Plugin.cs index c1f6632..df373e7 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/Plugin.cs +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Il2Cpp/Plugin.cs @@ -6,9 +6,12 @@ namespace BepInEx6.PluginTemplate.Unity.Il2Cpp; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BasePlugin { + internal static new ManualLogSource Log; + public override void Load() { // Plugin startup logic + this.Log = base.Log; Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); } } diff --git a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/Plugin.cs b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/Plugin.cs index f03ae48..938036f 100644 --- a/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/Plugin.cs +++ b/BepInEx.Templates/templates/BepInEx6.PluginTemplate.Unity.Mono/Plugin.cs @@ -6,9 +6,12 @@ namespace BepInEx6.PluginTemplate.Unity.Mono; [BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] public class Plugin : BaseUnityPlugin { + internal static new ManualLogSource Logger; + private void Awake() { // Plugin startup logic + this.Logger = base.Logger; Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!"); } }