示例#1
0
        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));
        }
示例#2
0
 FolderPath LogDir(LogArea target)
 => RootLogDir + FolderName.Define(target.ToString().ToLower());