From 729986ba7051238bb362b56d99e12e851d37c7ee Mon Sep 17 00:00:00 2001 From: Chris Yeninas <844685+PhantomGamers@users.noreply.github.com> Date: Wed, 26 Jun 2024 02:01:36 -0400 Subject: [PATCH] Update 3_logging.md (#20) --- articles/dev_guide/plugin_tutorial/3_logging.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/articles/dev_guide/plugin_tutorial/3_logging.md b/articles/dev_guide/plugin_tutorial/3_logging.md index a538fd83..2a7aa427 100644 --- a/articles/dev_guide/plugin_tutorial/3_logging.md +++ b/articles/dev_guide/plugin_tutorial/3_logging.md @@ -192,6 +192,7 @@ Example: ```cs using BepInEx; +using BepInEx.Logging; using BepInEx.Unity.Mono; namespace MyFirstPlugin; @@ -203,7 +204,7 @@ public class Plugin : BaseUnityPlugin private void Awake() { - Plugin.Log = base.Logger; + Log = base.Logger; } } @@ -221,6 +222,7 @@ class SomeOtherAssembly ```cs using BepInEx; +using BepInEx.Logging; using BepInEx.Unity.IL2CPP; namespace MyFirstPlugin; @@ -232,7 +234,7 @@ public class Plugin : BasePlugin public override void Load() { - Plugin.Log = base.Log; + Log = base.Log; } } @@ -250,6 +252,7 @@ class SomeOtherAssembly ```cs using BepInEx; +using BepInEx.Logging; using BepInEx.NET.Common; namespace MyFirstPlugin; @@ -261,7 +264,7 @@ public class Plugin : BasePlugin public override void Load() { - Plugin.Log = base.Log; + Log = base.Log; } } @@ -279,6 +282,7 @@ class SomeOtherAssembly ```cs using BepInEx; +using BepInEx.Logging; using BepInEx.NET.Common; namespace MyFirstPlugin; @@ -290,7 +294,7 @@ public class Plugin : BasePlugin public override void Load() { - Plugin.Log = base.Log; + Log = base.Log; } }