public void UpdateSettings(ConsoleLogGlobalSettings newSettings)
 {
     muxerSettings = SettingsValidator.ValidateGlobalSettings(newSettings);
 }
 /// <summary>
 /// <para>Create a new console log with the given settings.</para>
 /// <para>An exception will be thrown if the provided <paramref name="settings" /> are invalid.</para>
 /// </summary>
 public SynchronousConsoleLog([NotNull] ConsoleLogSettings settings)
 {
     this.settings           = SettingsValidator.ValidateInstanceSettings(settings);
     consoleFeaturesDetector = new ConsoleFeaturesDetector();
     consoleColorChanger     = new ConsoleColorChanger();
 }
Example #3
0
 internal ConsoleLog(IConsoleLogMuxerProvider muxerProvider, ConsoleLogSettings settings)
 {
     this.muxerProvider = muxerProvider;
     this.settings      = SettingsValidator.ValidateInstanceSettings(settings);
 }