public SpectreInlineLogger(string name, SpectreConsoleLoggerConfiguration config)
        {
            _name   = name;
            _config = config;

            var settings = config.ConsoleSettings ?? new AnsiConsoleSettings {
                Ansi        = AnsiSupport.Detect,
                ColorSystem = ColorSystemSupport.Detect
            };

            _console = AnsiConsole.Create(settings);
            if (config.ConsoleConfiguration != null)
            {
                config.ConsoleConfiguration.Invoke(_console);
            }
        }
Beispiel #2
0
 public SpectreInlineLoggerProvider(SpectreConsoleLoggerConfiguration config)
 {
     _config = config;
 }