LogExtensions Class

Summary

Contains extension methods for ICakeLog.
Namespace
Cake.Core.Diagnostics
Base Types
  • object
graph BT Type-->Base0["object"] Type["LogExtensions"] class Type type-node

Syntax

public static class LogExtensions

Methods

Name Value Summary
Debug(ICakeLog, LogAction) void
Writes a debug message to the log using the specified log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Debug(ICakeLog, object) void
Writes a debug message to the log using the specified value.
static
Debug(ICakeLog, string, object[]) void
Writes a debug message to the log using the specified format information.
static
Debug(ICakeLog, string) void
Writes a debug message to the log using the specified string value.
static
Debug(ICakeLog, Verbosity, LogAction) void
Writes a debug message to the log using the specified verbosity and log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Debug(ICakeLog, Verbosity, string, object[]) void
Writes a debug message to the log using the specified verbosity and format information.
static
DiagnosticVerbosity(ICakeLog) IDisposable
Sets the log verbosity to diagnostic and returns a disposable that restores the log verbosity on dispose.
static
Error(ICakeLog, LogAction) void
Writes an error message to the log using the specified log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Error(ICakeLog, object) void
Writes an error message to the log using the specified value.
static
Error(ICakeLog, string, object[]) void
Writes an error message to the log using the specified format information.
static
Error(ICakeLog, string) void
Writes an error message to the log using the specified string value.
static
Error(ICakeLog, Verbosity, LogAction) void
Writes an error message to the log using the specified verbosity and log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Error(ICakeLog, Verbosity, string, object[]) void
Writes an error message to the log using the specified verbosity and format information.
static
Information(ICakeLog, LogAction) void
Writes an informational message to the log using the specified log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Information(ICakeLog, object) void
Writes an informational message to the log using the specified value.
static
Information(ICakeLog, string, object[]) void
Writes an informational message to the log using the specified format information.
static
Information(ICakeLog, string) void
Writes an informational message to the log using the specified string value.
static
Information(ICakeLog, Verbosity, LogAction) void
Writes an informational message to the log using the specified verbosity and log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Information(ICakeLog, Verbosity, string, object[]) void
Writes an informational message to the log using the specified verbosity and format information.
static
MinimalVerbosity(ICakeLog) IDisposable
Sets the log verbosity to minimal and returns a disposable that restores the log verbosity on dispose.
static
NormalVerbosity(ICakeLog) IDisposable
Sets the log verbosity to normal and returns a disposable that restores the log verbosity on dispose.
static
QuietVerbosity(ICakeLog) IDisposable
Sets the log verbosity to quiet and returns a disposable that restores the log verbosity on dispose.
static
Verbose(ICakeLog, LogAction) void
Writes a verbose message to the log using the specified log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Verbose(ICakeLog, object) void
Writes a verbose message to the log using the specified value.
static
Verbose(ICakeLog, string, object[]) void
Writes a verbose message to the log using the specified format information.
static
Verbose(ICakeLog, string) void
Writes a verbose message to the log using the specified string value.
static
Verbose(ICakeLog, Verbosity, LogAction) void
Writes a verbose message to the log using the specified verbosity and log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Verbose(ICakeLog, Verbosity, string, object[]) void
Writes a verbose message to the log using the specified verbosity and format information.
static
VerboseVerbosity(ICakeLog) IDisposable
Sets the log verbosity to verbose and returns a disposable that restores the log verbosity on dispose.
static
Warning(ICakeLog, LogAction) void
Writes a warning message to the log using the specified log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Warning(ICakeLog, object) void
Writes an warning message to the log using the specified value.
static
Warning(ICakeLog, string, object[]) void
Writes a warning message to the log using the specified format information.
static
Warning(ICakeLog, string) void
Writes an warning message to the log using the specified string value.
static
Warning(ICakeLog, Verbosity, LogAction) void
Writes a warning message to the log using the specified verbosity and log message action. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static
Warning(ICakeLog, Verbosity, string, object[]) void
Writes a warning message to the log using the specified verbosity and format information.
static
WithVerbosity(ICakeLog, Verbosity) IDisposable
Sets the log verbosity as specified and returns a disposable that restores the log verbosity on dispose.
static
Write(ICakeLog, Verbosity, LogLevel, LogAction) void
Writes a message to the log using the specified verbosity, log level and log action delegate. Evaluates log message only if the verbosity is equal to or more verbose than the log's verbosity.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin