Table of Contents

Class LoggerWithPrefix

Namespace
BenchmarkDotNet.Loggers
Assembly
BenchmarkDotNet.dll

Adds prefix for each line

public class LoggerWithPrefix : ILogger
Inheritance
LoggerWithPrefix
Implements
Extension Methods

Constructors

LoggerWithPrefix(ILogger, string)

public LoggerWithPrefix(ILogger logger, string prefix)

Parameters

logger ILogger
Adds prefix for each line
prefix string
Adds prefix for each line

Properties

Id

public string Id { get; }

Property Value

string
Adds prefix for each line

Priority

If there are several loggers with the same Id, only logger with the highest priority will be used.

public int Priority { get; }

Property Value

int
Adds prefix for each line

Methods

Flush()

public void Flush()

Write(LogKind, string)

public void Write(LogKind logKind, string text)

Parameters

logKind LogKind
Adds prefix for each line
text string
Adds prefix for each line

WriteLine()

public void WriteLine()

WriteLine(LogKind, string)

public void WriteLine(LogKind logKind, string text)

Parameters

logKind LogKind
Adds prefix for each line
text string
Adds prefix for each line