using System.IO; namespace Unity.PlasticSCM.Editor.Configuration { internal class WriteLogConfiguration { internal static void For(string logConfigPath) { string logDirectoryPath = GetPlasticLogDirectoryPath(logConfigPath); string relevantLogFile = Path.Combine(logDirectoryPath, RELEVANT_LOG_FILE_NAME); string debugLogFile = Path.Combine(logDirectoryPath, DEBUG_LOG_FILE_NAME); using (StreamWriter sw = File.CreateText(logConfigPath)) { sw.Write(string.Format( LOG_CONFIGURATION, relevantLogFile, debugLogFile)); } } static string GetPlasticLogDirectoryPath(string logConfigPath) { return Path.Combine( Directory.GetParent(logConfigPath).FullName, LOGS_DIRECTORY); } const string LOGS_DIRECTORY = "logs"; const string RELEVANT_LOG_FILE_NAME = "unityplastic.relevant.log.txt"; const string DEBUG_LOG_FILE_NAME = "unityplastic.debug.log.txt"; const string LOG_CONFIGURATION = @" "; } }