static void Main(string[] args) { try { Settings.init(); Logger.init(Logger.createFileLogger(Settings.single.LogPath, "logW", new Logger())); MasterDBWriter writer = new MasterDBWriter(); writer.InitRun(30000, 3, 3); writer.Run(); Console.ReadLine(); } catch (Exception e) { Logger.Error(e.ToString()); } }
public void Run(string[] args) { try { Settings.init(); DBSettings.init(); Logger.InitFileLogger(Settings.single.LogPath, "logW"); MasterDBWriter writer=new MasterDBWriter(); if (args.Length > 0) { DateTime dateStart=DateTime.Parse(args[0]); writer.Process(dateStart, DateTime.Now, (RWModeEnum)Enum.Parse(typeof(RWModeEnum), args[1])); } else { writer.InitRun(60000, 3, 5); writer.Run(); } } catch (Exception e) { Logger.Error(e.ToString()); } }