File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
src/Serilog.Sinks.Console
Sinks/SystemConsole/Themes Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ public static class ConsoleLoggerConfigurationExtensions
5050 /// uses <see cref="SystemConsoleTheme.Literate"/>.</param>
5151 /// <param name="applyThemeToRedirectedOutput">Applies the selected or default theme even when output redirection is detected.</param>
5252 /// <returns>Configuration object allowing method chaining.</returns>
53+ /// <exception cref="ArgumentNullException">When <paramref name="sinkConfiguration"/> is <code>null</code></exception>
54+ /// <exception cref="ArgumentNullException">When <paramref name="outputTemplate"/> is <code>null</code></exception>
5355 public static LoggerConfiguration Console (
5456 this LoggerSinkConfiguration sinkConfiguration ,
5557 LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum ,
@@ -89,6 +91,8 @@ public static LoggerConfiguration Console(
8991 /// to be changed at runtime.</param>
9092 /// <param name="standardErrorFromLevel">Specifies the level at which events will be written to standard error.</param>
9193 /// <returns>Configuration object allowing method chaining.</returns>
94+ /// <exception cref="ArgumentNullException">When <paramref name="sinkConfiguration"/> is <code>null</code></exception>
95+ /// <exception cref="ArgumentNullException">When <paramref name="formatter"/> is <code>null</code></exception>
9296 public static LoggerConfiguration Console (
9397 this LoggerSinkConfiguration sinkConfiguration ,
9498 ITextFormatter formatter ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public class AnsiConsoleTheme : ConsoleTheme
4747 /// Construct a theme given a set of styles.
4848 /// </summary>
4949 /// <param name="styles">Styles to apply within the theme.</param>
50+ /// <exception cref="ArgumentNullException">When <paramref name="styles"/> is <code>null</code></exception>
5051 public AnsiConsoleTheme ( IReadOnlyDictionary < ConsoleThemeStyle , string > styles )
5152 {
5253 if ( styles is null ) throw new ArgumentNullException ( nameof ( styles ) ) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ public class SystemConsoleTheme : ConsoleTheme
4444 /// Construct a theme given a set of styles.
4545 /// </summary>
4646 /// <param name="styles">Styles to apply within the theme.</param>
47+ /// <exception cref="ArgumentNullException">When <paramref name="styles"/> is <code>null</code></exception>
4748 public SystemConsoleTheme ( IReadOnlyDictionary < ConsoleThemeStyle , SystemConsoleThemeStyle > styles )
4849 {
4950 if ( styles is null ) throw new ArgumentNullException ( nameof ( styles ) ) ;
You can’t perform that action at this time.
0 commit comments