Exemplo n.º 1
0
        private static void RunOptions(CommandLineOptions options)
        {
            string logDirectoryPath = string.IsNullOrEmpty(options.LogDirectoryPath) ? "XEventsExportLogs" : options.LogDirectoryPath;

            _settings = XEventsExportApplicationSettings.CreateSettings(
                options.ConfigFile,
                options.AllowInteractiveCommands,
                logDirectoryPath);
        }
Exemplo n.º 2
0
        private static void RunOptions(CommandLineOptions options)
        {
            string logDirectoryPath = string.IsNullOrEmpty(options.LogDirectoryPath) ? "XEventsExportLogs" : options.LogDirectoryPath;
            string configFile       = options.ConfigFile ?? "appsettings.json";

            Configuration = new ConfigurationBuilder()
                            .AddJsonFile(configFile, false, false)
                            .Build();

            _settings = XEventsExportApplicationSettings.CreateSettings(
                Configuration,
                options.AllowInteractiveCommands,
                logDirectoryPath);
        }
Exemplo n.º 3
0
 public XEventToClickHouse(ILogger <XEventToClickHouse> logger, XEventsExportApplicationSettings settings)
 {
     _logger   = logger;
     _settings = settings;
 }
Exemplo n.º 4
0
 private static void HandleParseError(IEnumerable <Error> errors)
 {
     _settings = XEventsExportApplicationSettings.CreateSettings(null, false, "XEventsExportLogs");
 }