10 static TextWriter console
= Console
.Out
;
11 static TextWriter file
= null;
13 static private void Write (string prefix
, string format
, params object [] args
)
16 message
= prefix
+ " " + String
.Format (format
, args
);
19 console
.WriteLine (message
);
22 file
.WriteLine (message
);
27 static public void Create (string path
)
29 file
= new StreamWriter (path
);
32 static public void Spew (string format
, params object [] args
)
34 Write ("---", format
, args
);
37 static public void Info (string format
, params object [] args
)
39 Write ("+++", format
, args
);
42 static public void Failure (string format
, params object [] args
)
44 Write ("***", format
, args
);