static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(); var properties = new Common.Logging.Configuration.NameValueCollection { { "configType", "INLINE" } }; Common.Logging.LogManager.Adapter = new Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter(properties); try { Options options = new Options(); if (args.Count() == 0 || !Parser.Default.ParseArguments(args, options)) { throw new Exception("Failed to parse input params"); } using (var p = new Program(options)) { p.Run(options.FilePath); } } catch (Exception ex) { var error = string.Format("Updater finished with errors : {0}", ex.ToString()); Common.Logging.LogManager.GetLogger("Magnetar.Logger").ErrorFormat(error); return; } }