Summary
Sets the log verbosity to diagnostic and returns a disposable that restores the log verbosity on dispose.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Verbosity")]
public static IDisposable DiagnosticVerbosity(this ICakeContext context)
Examples
using (DiagnosticVerbosity())
{
Error("Show me.");
Warning("Show me.");
Information("Show me.");
Verbose("Show me.");
Debug("Show me.");
}
Attributes
Parameters
Return Value
Type |
Description |
IDisposable |
A disposable that restores the log verbosity. |