/// <summary> /// Sets the log verbosity to diagnostic and returns a disposable that restores the log verbosity on dispose. /// </summary> /// <param name="log">The log.</param> /// <returns>A disposable that restores the log verbosity.</returns> public static IDisposable DiagnosticVerbosity(this ICakeLog log) { return(log.WithVerbosity(Verbosity.Diagnostic)); }
/// <summary> /// Sets the log verbosity to normal and returns a disposable that restores the log verbosity on dispose. /// </summary> /// <param name="log">The log.</param> /// <returns>A disposable that restores the log verbosity.</returns> public static IDisposable NormalVerbosity(this ICakeLog log) { return(log.WithVerbosity(Verbosity.Normal)); }
/// <summary> /// Sets the log verbosity to verbose and returns a disposable that restores the log verbosity on dispose. /// </summary> /// <param name="log">The log.</param> /// <returns>A disposable that restores the log verbosity.</returns> public static IDisposable VerboseVerbosity(this ICakeLog log) { return(log.WithVerbosity(Verbosity.Verbose)); }
/// <summary> /// Sets the log verbosity to quiet and returns a disposable that restores the log verbosity on dispose. /// </summary> /// <param name="log">The log.</param> /// <returns>A disposable that restores the log verbosity.</returns> public static IDisposable QuietVerbosity(this ICakeLog log) { return(log.WithVerbosity(Verbosity.Quiet)); }