static StreamWriter EmissionWriter(string name, string extension, bool timestamped) { var dstFolder = FolderPath.Define(Settings.ProjectDir("reveal")) + FolderName.Define(".dumps"); var dstFileName = FileName.Define(name) + FileExtension.Define(extension); if (timestamped) { dstFileName = FileName.Timestamped(dstFileName); } var dstPath = dstFolder.CreateIfMissing() + dstFileName; return(new StreamWriter(dstPath.ToString(), false)); }
FolderPath LogDir(LogArea target) => RootLogDir + FolderName.Define(target.ToString().ToLower());