Example #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);
        }
Example #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);
        }
 public XEventToClickHouse(ILogger <XEventToClickHouse> logger, XEventsExportApplicationSettings settings)
 {
     _logger   = logger;
     _settings = settings;
 }
Example #4
0
 private static void HandleParseError(IEnumerable <Error> errors)
 {
     _settings = XEventsExportApplicationSettings.CreateSettings(null, false, "XEventsExportLogs");
 }