public static void LogWarning(string msg, bool inConsole = true) { using (FileStream fileStream = new FileStream(Loader.RustLogFile, FileMode.Append, FileAccess.Write, FileShare.ReadWrite)) { using (StreamWriter streamWriter = new StreamWriter(fileStream)) { streamWriter.WriteLine(DateTime.Now.ToString("HH:mm:ss") + ": " + msg); } } File.SetLastWriteTime(Loader.RustLogFile, DateTime.Now); if (inConsole) { ConsoleSystem.PrintWarning(msg, false); } }