public static void Warning(String message) { try { DebugOutputPanel.AddMessage(ColossalFramework.Plugins.PluginManager.MessageType.Warning, prefix + message); if (inFile) { ChirpLog.Warning(prefix + message); } } catch (Exception e) { ChirpLog.Error("Error during Console.Warning: " + e); } }