|
@@ -24,10 +24,20 @@ namespace BepInEx
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Logs an entry to the logger, and any listeners are notified of the entry.
|
|
/// Logs an entry to the logger, and any listeners are notified of the entry.
|
|
/// </summary>
|
|
/// </summary>
|
|
|
|
+ /// <param name="entry">The text element of the log itself.</param>
|
|
|
|
+ /// <param name="show">Whether or not it should be dislpayed to the user.</param>
|
|
|
|
+ public static void Log(string entry, bool show = false)
|
|
|
|
+ {
|
|
|
|
+ Log(entry, show, ConsoleColor.Gray);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Logs an entry to the logger, and any listeners are notified of the entry.
|
|
|
|
+ /// </summary>
|
|
/// <param name="entry">The text element of the log itself. Uses .ToString().</param>
|
|
/// <param name="entry">The text element of the log itself. Uses .ToString().</param>
|
|
/// <param name="show">Whether or not it should be dislpayed to the user.</param>
|
|
/// <param name="show">Whether or not it should be dislpayed to the user.</param>
|
|
/// <param name="color">The color of the text to show in the console.</param>
|
|
/// <param name="color">The color of the text to show in the console.</param>
|
|
- public static void Log(object entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
|
|
|
|
|
|
+ public static void Log(object entry, bool show, ConsoleColor color)
|
|
{
|
|
{
|
|
Log(entry.ToString(), show, color);
|
|
Log(entry.ToString(), show, color);
|
|
}
|
|
}
|
|
@@ -38,7 +48,7 @@ namespace BepInEx
|
|
/// <param name="entry">The text element of the log itself.</param>
|
|
/// <param name="entry">The text element of the log itself.</param>
|
|
/// <param name="show">Whether or not it should be dislpayed to the user.</param>
|
|
/// <param name="show">Whether or not it should be dislpayed to the user.</param>
|
|
/// <param name="color">The color of the text to show in the console.</param>
|
|
/// <param name="color">The color of the text to show in the console.</param>
|
|
- public static void Log(string entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
|
|
|
|
|
|
+ public static void Log(string entry, bool show, ConsoleColor color)
|
|
{
|
|
{
|
|
UnityEngine.UnityLogWriter.WriteStringToUnityLog($"BEPIN - {entry}\r\n");
|
|
UnityEngine.UnityLogWriter.WriteStringToUnityLog($"BEPIN - {entry}\r\n");
|
|
|
|
|