-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1957a1b
commit 6596080
Showing
9 changed files
with
86 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright © 2016 Syterra Software Inc. All rights reserved. | ||
// The use and distribution terms for this software are covered by the Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | ||
// which can be found in the file license.txt at the root of this distribution. By using this software in any fashion, you are agreeing | ||
// to be bound by the terms of this license. You must not remove this notice, or any other, from this software. | ||
|
||
using System; | ||
using System.IO; | ||
using fitSharp.Machine.Model; | ||
|
||
namespace fitSharp.Machine.Engine { | ||
public class Trace: Copyable { | ||
|
||
public Copyable Copy() { | ||
return new Trace {writer = writer}; | ||
} | ||
|
||
public void File(string fileName) { | ||
writer = new StreamWriter(fileName); | ||
} | ||
|
||
public void Stop() { | ||
writer.Close(); | ||
writer = StreamWriter.Null; | ||
} | ||
|
||
public void Write(string label, string message) { | ||
writer.WriteLine("{0:yyyy-MM-dd HH:mm:ss.fffff},{1},{2}", DateTime.Now, label, message); | ||
writer.Flush(); | ||
} | ||
|
||
StreamWriter writer = StreamWriter.Null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters