@@ -986,6 +986,168 @@ public static void Debug(string value)
986986 public static global::System.IDisposable DiagnosticVerbosity()
987987 => global::Cake.Common.Diagnostics.LoggingAliases.DiagnosticVerbosity(Context);
988988
989+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Cake.Core.ICakeContext,Cake.Core.Diagnostics.Verbosity)">
990+ /// <summary>
991+ /// Sets the log verbosity as specified and returns a disposable that restores the log verbosity on dispose.
992+ /// </summary>
993+ /// <param name="verbosity">The verbosity.</param>
994+ /// <returns>A disposable that restores the log verbosity.</returns>
995+ /// <example>
996+ /// <code>
997+ /// using (DiagnosticVerbosity())
998+ /// {
999+ /// Error("Show me.");
1000+ /// Warning("Show me.");
1001+ /// Information("Show me.");
1002+ /// Verbose("Show me.");
1003+ /// Debug("Show me.");
1004+ /// }
1005+ /// </code>
1006+ /// </example>
1007+ /// </member>
1008+ public static global::System.IDisposable WithVerbosity(global::Cake.Core.Diagnostics.Verbosity verbosity)
1009+ => global::Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Context, verbosity);
1010+
1011+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,System.FormattableString)">
1012+ /// <summary>
1013+ /// Writes an error message to the log using the specified format information.
1014+ /// </summary>
1015+ /// <param name="formattable">The string to be formatted.</param>
1016+ /// <example>
1017+ /// <code>
1018+ /// Error($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1019+ /// </code>
1020+ /// </example>
1021+ /// </member>
1022+ public static void Error(global::System.FormattableString formattable)
1023+ => global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattable);
1024+
1025+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,System.FormattableString)">
1026+ /// <summary>
1027+ /// Writes an warning message to the log using the specified format information.
1028+ /// </summary>
1029+ /// <param name="formattable">The string to be formatted.</param>
1030+ /// <example>
1031+ /// <code>
1032+ /// Warning($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1033+ /// </code>
1034+ /// </example>
1035+ /// </member>
1036+ public static void Warning(global::System.FormattableString formattable)
1037+ => global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattable);
1038+
1039+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,System.FormattableString)">
1040+ /// <summary>
1041+ /// Writes an informational message to the log using the specified formattable string.
1042+ /// </summary>
1043+ /// <param name="formattable">The string to be formatted.</param>
1044+ /// <example>
1045+ /// <code>
1046+ /// Information($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1047+ /// </code>
1048+ /// </example>
1049+ /// </member>
1050+ public static void Information(global::System.FormattableString formattable)
1051+ => global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattable);
1052+
1053+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,System.FormattableString)">
1054+ /// <summary>
1055+ /// Writes an verbose message to the log using the specified formattable string.
1056+ /// </summary>
1057+ /// <param name="formattable">The string to be formatted.</param>
1058+ /// <example>
1059+ /// <code>
1060+ /// Verbose($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1061+ /// </code>
1062+ /// </example>
1063+ /// </member>
1064+ public static void Verbose(global::System.FormattableString formattable)
1065+ => global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattable);
1066+
1067+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,System.FormattableString)">
1068+ /// <summary>
1069+ /// Writes an debug message to the log using the specified formattable string.
1070+ /// </summary>
1071+ /// <param name="formattable">The string to be formatted.</param>
1072+ /// <example>
1073+ /// <code>
1074+ /// Debug($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1075+ /// </code>
1076+ /// </example>
1077+ /// </member>
1078+ public static void Debug(global::System.FormattableString formattable)
1079+ => global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattable);
1080+
1081+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1082+ /// <summary>
1083+ /// Writes an error message to the log using the specified format information.
1084+ /// </summary>
1085+ /// <param name="formattableLogAction">The log action.</param>
1086+ /// <example>
1087+ /// <code>
1088+ /// Error(logAction => logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1089+ /// </code>
1090+ /// </example>
1091+ /// </member>
1092+ public static void Error(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1093+ => global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattableLogAction);
1094+
1095+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1096+ /// <summary>
1097+ /// Writes an warning message to the log using the specified format information.
1098+ /// </summary>
1099+ /// <param name="formattableLogAction">The log action.</param>
1100+ /// <example>
1101+ /// <code>
1102+ /// Warning(logAction => logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1103+ /// </code>
1104+ /// </example>
1105+ /// </member>
1106+ public static void Warning(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1107+ => global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattableLogAction);
1108+
1109+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1110+ /// <summary>
1111+ /// Writes an informational message to the log using the specified formattable string.
1112+ /// </summary>
1113+ /// <param name="formattableLogAction">The log action.</param>
1114+ /// <example>
1115+ /// <code>
1116+ /// Information(logAction => logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1117+ /// </code>
1118+ /// </example>
1119+ /// </member>
1120+ public static void Information(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1121+ => global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattableLogAction);
1122+
1123+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1124+ /// <summary>
1125+ /// Writes an verbose message to the log using the specified formattable string.
1126+ /// </summary>
1127+ /// <param name="formattableLogAction">The log action.</param>
1128+ /// <example>
1129+ /// <code>
1130+ /// Verbose(logAction => logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1131+ /// </code>
1132+ /// </example>
1133+ /// </member>
1134+ public static void Verbose(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1135+ => global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattableLogAction);
1136+
1137+ /// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1138+ /// <summary>
1139+ /// Writes an debug message to the log using the specified formattable string.
1140+ /// </summary>
1141+ /// <param name="formattableLogAction">The log action.</param>
1142+ /// <example>
1143+ /// <code>
1144+ /// Debug(logAction => logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1145+ /// </code>
1146+ /// </example>
1147+ /// </member>
1148+ public static void Debug(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1149+ => global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattableLogAction);
1150+
9891151 /// <member name="M:Cake.Common.Diagnostics.ScriptCallerAliases.GetCallerInfo(Cake.Core.ICakeContext,System.String,System.String,System.Int32)">
9901152 /// <summary>
9911153 /// Performs script caller information.
0 commit comments