예제 #1
0
        private static void LogToFile(string message)
        {
            string logFileName = ModPaths.GetLogFilePath();

            File.AppendAllText(logFileName, message);
            File.AppendAllText(logFileName, Environment.NewLine);
        }
예제 #2
0
        private static void clearLog()
        {
            string fileName = ModPaths.GetLogFilePath();

            if (File.Exists(fileName))
            {
                File.WriteAllText(fileName, string.Empty);
            }
        }
예제 #3
0
 public void OnEnabled()
 {
     _settingsFilePath = ModPaths.GetConfigurationFilePath();
     Load();
     ModLogger.Debug("WorkshopMonitor mod enabled");
 }