static LogFormat LoadFormat(string filename) { using (var stream = System.IO.File.OpenRead(filename)) { return(LogFormat.FromXML(stream)); } }