public static void Write(Build build, string filePath)
 {
     using (var binaryLogWriter = new BinaryLogWriter(filePath))
     {
         binaryLogWriter.WriteNode(build);
     }
 }
Beispiel #2
0
 public static void Write(Build build, string filePath)
 {
     if (filePath.EndsWith(".xml", StringComparison.OrdinalIgnoreCase))
     {
         XmlLogWriter.WriteToXml(build, filePath);
     }
     else
     {
         BinaryLogWriter.Write(build, filePath);
     }
 }