Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix Id
  • Loading branch information
nietras committed Aug 18, 2023
commit e412712699b02f03ca952f081549024c87e72bdd
2 changes: 2 additions & 0 deletions src/BenchmarkDotNet/Loggers/StreamLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ public StreamLogger(StreamWriter writer) : base(writer) { }
public StreamLogger(string filePath, bool append = false)
: this(new StreamWriter(filePath, append))
{ }

public override string Id => nameof(StreamLogger);
}
}
3 changes: 2 additions & 1 deletion src/BenchmarkDotNet/Loggers/TextLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ public class TextLogger : ILogger, IDisposable

public void Dispose() => writer.Dispose();

public string Id => nameof(TextLogger);
public virtual string Id => nameof(TextLogger);
public int Priority => 0;

public void Write(LogKind logKind, string text) => writer.Write(text);

public void WriteLine() => writer.WriteLine();
Expand Down