From 9f9957eafa2d2182e6df1613574c1322f7cb6f3d Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:39:21 -0500 Subject: [PATCH] SWT: Added console color comments --- .../SimpleWeb/SimpleWeb/Common/Log.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Common/Log.cs b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Common/Log.cs index e0c53093d..150c43bea 100644 --- a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Common/Log.cs +++ b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Common/Log.cs @@ -6,6 +6,29 @@ namespace Mirror.SimpleWeb { public static class Log { + + // The.NET console color names map to the following approximate CSS color names: + + // Black: Black + // Blue: Blue + // Cyan: Aqua or Cyan + // DarkBlue: DarkBlue + // DarkCyan: DarkCyan + // DarkGray: DarkGray + // DarkGreen: DarkGreen + // DarkMagenta: DarkMagenta + // DarkRed: DarkRed + // DarkYellow: DarkOrange or DarkGoldenRod + // Gray: Gray + // Green: Green + // Magenta: Magenta + // Red: Red + // White: White + // Yellow: Yellow + + // We can't use colors that are close to white or black because + // they won't show up well in the server console or browser console + public enum Levels { none = 0,