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
rename to TextLogger
  • Loading branch information
nietras committed Aug 17, 2023
commit 8869a210b3c92434a2d0ea3f2fe05c6e5c8678fe
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Loggers/StreamLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace BenchmarkDotNet.Loggers
{
public class StreamLogger : TextWriterLogger
public class StreamLogger : TextLogger
{
public StreamLogger(StreamWriter writer) : base(writer) { }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

namespace BenchmarkDotNet.Loggers
{
public class TextWriterLogger : ILogger, IDisposable
public class TextLogger : ILogger, IDisposable
{
private readonly TextWriter writer;

public TextWriterLogger(TextWriter writer) => this.writer = writer;
public TextLogger(TextWriter writer) => this.writer = writer;

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

public string Id => nameof(TextWriterLogger);
public string Id => nameof(TextLogger);
public int Priority => 0;
public void Write(LogKind logKind, string text) => writer.Write(text);

Expand Down