12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System;
- using BepInEx.ConsoleUtil;
- namespace BepInEx
- {
-
-
-
- [Obsolete("This class has been deprecated; please use the Logger static class and BaseLogger implementations", true)]
- public static class BepInLogger
- {
-
-
-
-
-
- public delegate void EntryLoggedEventHandler(string entry, bool show = false);
-
-
-
- public static event EntryLoggedEventHandler EntryLogged;
-
-
-
-
-
- public static void Log(string entry, bool show = false)
- {
- Log(entry, show, ConsoleColor.Gray);
- }
-
-
-
-
-
-
- public static void Log(object entry, bool show, ConsoleColor color)
- {
- Log(entry.ToString(), show, color);
- }
-
-
-
-
-
-
- public static void Log(string entry, bool show, ConsoleColor color)
- {
- UnityEngine.UnityLogWriter.WriteStringToUnityLog($"BEPIN - {entry}\r\n");
- Kon.ForegroundColor = color;
- Console.WriteLine(entry);
- EntryLogged?.Invoke(entry, show);
- }
- }
- }
|