/// <summary> /// Initializes a new instance of the <see cref="ConsoleLogListener"/>. /// </summary> public ConsoleLogListener() { if (!WinApi.AllocateConsole()) { throw new InvalidOperationException(LocalizedStrings.CannotCreateConsoleWindow); } }