ILog Interface

Summary

Provides structured logging for GitVersion, supporting multiple verbosity levels and pluggable appenders.
Namespace
GitVersion.Logging
graph BT Type["ILog"] class Type type-node

Syntax

public interface ILog

Properties

Name Value Summary
Verbosity Verbosity
Gets or sets the minimum verbosity level at which messages are written.

Methods

Name Value Summary
AddLogAppender(ILogAppender) void
Registers an additional ILogAppender that will receive all log messages.
IndentLog(string) IDisposable
Returns a disposable scope that indents subsequent log output and labels it with operationDescription.
Separator() void
Writes a visual separator line to the log output.
Write(Verbosity, LogLevel, string, object[]) void
Writes a formatted log message at the given verbosity and level.

Extension Methods

Name Value Summary
NotNull<ILog>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub