Class ConsoleLogger
- Namespace
- BenchmarkDotNet.Loggers
- Assembly
- BenchmarkDotNet.dll
public sealed class ConsoleLogger : ILogger
- Inheritance
-
ConsoleLogger
- Implements
- Extension Methods
Constructors
ConsoleLogger(bool, Dictionary<LogKind, ConsoleColor>?)
public ConsoleLogger(bool unicodeSupport = false, Dictionary<LogKind, ConsoleColor>? colorScheme = null)
Parameters
unicodeSupport
boolcolorScheme
Dictionary<LogKind, ConsoleColor>
Fields
Ascii
public static readonly ILogger Ascii
Field Value
Default
public static readonly ILogger Default
Field Value
Unicode
public static readonly ILogger Unicode
Field Value
Properties
Id
public string Id { get; }
Property Value
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
Methods
CreateGrayScheme()
public static Dictionary<LogKind, ConsoleColor> CreateGrayScheme()
Returns
Flush()
public void Flush()
Write(LogKind, string)
public void Write(LogKind logKind, string text)
Parameters
WriteLine()
public void WriteLine()
WriteLine(LogKind, string)
public void WriteLine(LogKind logKind, string text)