private static void LogToFile(string message) { string logFileName = ModPaths.GetLogFilePath(); File.AppendAllText(logFileName, message); File.AppendAllText(logFileName, Environment.NewLine); }
private static void clearLog() { string fileName = ModPaths.GetLogFilePath(); if (File.Exists(fileName)) { File.WriteAllText(fileName, string.Empty); } }
public void OnEnabled() { _settingsFilePath = ModPaths.GetConfigurationFilePath(); Load(); ModLogger.Debug("WorkshopMonitor mod enabled"); }