static FileLogger() { SetDumpMethod(ObjectDumpMethod.Traverse); Settings = new LoggerSettings(); producer = new ProducerConsumer <LogItem>(); producer.ItemProcessed += Producer_ItemProcessed; }
public void Initialize() { var version = Environment.OSVersion.Version; IsWindows8OrGreater = (version.Major == 6 && version.Minor >= 2) || version.Major > 6; Loggers = new ObservableCollection <LoggerBase> { new ItemLog(KanColleClient.Current.Proxy), new ConstructionLog(KanColleClient.Current.Proxy), new BattleLog(KanColleClient.Current.Proxy), new MaterialsLog(KanColleClient.Current.Proxy), }; Settings = new LoggerSettings(Loggers); foreach (var logger in Loggers) { logger.Initialize(); } this.viewmodel = new LoggerViewModel(); }