public PostprocessorsInitializer( IManager postprocessorsManager, IUserDefinedFormatsManager userDefinedFormatsManager, Timeline.IPostprocessorsFactory timelinePostprocessorsFactory ) { IUserDefinedFactory findFormat(string company, string formatName) { var ret = userDefinedFormatsManager.Items.FirstOrDefault( f => f.CompanyName == company && f.FormatName == formatName); if (ret == null) { throw new Exception(string.Format("Log format {0} is not registered in LogJoint", formatName)); } return(ret); } this.wiresharkPdmlFormat = findFormat("Wireshark", "pdml"); this.wiresharkPdml = new LogSourceMetadata( wiresharkPdmlFormat, timelinePostprocessorsFactory.CreateWiresharkDpmlPostprocessor() ); postprocessorsManager.RegisterLogType(this.wiresharkPdml); }
public PostprocessorsInitializer( IManager postprocessorsManager, IUserDefinedFormatsManager userDefinedFormatsManager, StateInspector.IPostprocessorsFactory stateInspectorPostprocessorsFactory, TimeSeries.IPostprocessorsFactory timeSeriesPostprocessorsFactory, Correlator.IPostprocessorsFactory correlatorPostprocessorsFactory, Timeline.IPostprocessorsFactory timelinePostprocessorsFactory, SequenceDiagram.IPostprocessorsFactory sequenceDiagramPostprocessorsFactory ) { IUserDefinedFactory findFormat(string company, string formatName) { var ret = userDefinedFormatsManager.Items.FirstOrDefault( f => f.CompanyName == company && f.FormatName == formatName); if (ret == null) { throw new Exception(string.Format("Log format {0} is not registered in LogJoint", formatName)); } return(ret); } this.chromeDebugLogFormat = findFormat("Google", "Chrome debug log"); this.webRtcInternalsDumpFormat = findFormat("Google", "Chrome WebRTC internals dump as log"); this.chromeDriverLogFormat = findFormat("Google", "chromedriver"); this.httpArchiveFormat = findFormat("W3C", "HTTP Archive (HAR)"); this.chromeDebugLogMeta = new LogSourceMetadata( chromeDebugLogFormat, stateInspectorPostprocessorsFactory.CreateChromeDebugPostprocessor(), timeSeriesPostprocessorsFactory.CreateChromeDebugPostprocessor(), timelinePostprocessorsFactory.CreateChromeDebugPostprocessor(), sequenceDiagramPostprocessorsFactory.CreateChromeDebugPostprocessor(), correlatorPostprocessorsFactory.CreateChromeDebugPostprocessor() ); postprocessorsManager.Register(this.chromeDebugLogMeta); this.webRtcInternalsDumpMeta = new LogSourceMetadata( webRtcInternalsDumpFormat, stateInspectorPostprocessorsFactory.CreateWebRtcInternalsDumpPostprocessor(), timeSeriesPostprocessorsFactory.CreateWebRtcInternalsDumpPostprocessor(), correlatorPostprocessorsFactory.CreateWebRtcInternalsPostprocessor() ); postprocessorsManager.Register(this.webRtcInternalsDumpMeta); this.chromeDriverLogMeta = new LogSourceMetadata( chromeDriverLogFormat, timelinePostprocessorsFactory.CreateChromeDriverPostprocessor(), correlatorPostprocessorsFactory.CreateChromeDriverPostprocessor() ); postprocessorsManager.Register(this.chromeDriverLogMeta); this.httpArchiveMeta = new LogSourceMetadata( httpArchiveFormat, timelinePostprocessorsFactory.CreateHttpArchivePostprocessor(), sequenceDiagramPostprocessorsFactory.CreateHttpArchivePostprocessor() ); postprocessorsManager.Register(this.httpArchiveMeta); }
void IPresenter.UpdateView(IUserDefinedFactory factory) { view.Update( messageLabelText: string.Format("You are about to delete '{0}' format definition. Press Finish to delete, Cancel to cancel the operation.", LogProviderFactoryRegistry.ToString(factory)), descriptionTextBoxValue: factory.FormatDescription, fileNameTextBoxValue: factory.Location, dateTextBoxValue: File.Exists(factory.Location) ? File.GetLastWriteTime(factory.Location).ToString() : "" ); }
public PostprocessorsInitializer( IManager postprocessorsManager, IUserDefinedFormatsManager userDefinedFormatsManager, StateInspector.IPostprocessorsFactory stateInspectorPostprocessorsFactory, TimeSeries.IPostprocessorsFactory timeSeriesPostprocessorsFactory, Correlator.IPostprocessorsFactory correlatorPostprocessorsFactory, Timeline.IPostprocessorsFactory timelinePostprocessorsFactory, SequenceDiagram.IPostprocessorsFactory sequenceDiagramPostprocessorsFactory ) { IUserDefinedFactory findFormat(string company, string formatName) { var ret = userDefinedFormatsManager.Items.FirstOrDefault( f => f.CompanyName == company && f.FormatName == formatName); if (ret == null) { throw new Exception(string.Format("Log format {0} is not registered in LogJoint", formatName)); } return(ret); } this.symRtcLogFormat = findFormat("Symphony", "RTC log"); this.springServiceLogFormat = findFormat("Symphony", "RTC Java Spring Service log"); this.smbLogFormat = findFormat("Symphony", "SMB log"); var correlatorPostprocessorType = correlatorPostprocessorsFactory.CreatePostprocessor(this); postprocessorsManager.RegisterCrossLogSourcePostprocessor(correlatorPostprocessorType); this.springServiceLogMeta = new LogSourceMetadata( springServiceLogFormat, sequenceDiagramPostprocessorsFactory.CreateSpringServiceLogPostprocessor(), timelinePostprocessorsFactory.CreateSpringServiceLogPostprocessor() ); postprocessorsManager.RegisterLogType(this.springServiceLogMeta); this.symRtcLogMeta = new LogSourceMetadata( symRtcLogFormat, stateInspectorPostprocessorsFactory.CreateSymphonyRtcPostprocessor(), timeSeriesPostprocessorsFactory.CreateSymphonyRtcPostprocessor(), timelinePostprocessorsFactory.CreateSymRtcPostprocessor(), sequenceDiagramPostprocessorsFactory.CreateRtcLogPostprocessor() ); postprocessorsManager.RegisterLogType(this.symRtcLogMeta); this.smbLogMeta = new LogSourceMetadata( smbLogFormat, sequenceDiagramPostprocessorsFactory.CreateSMBPostprocessor() ); postprocessorsManager.RegisterLogType(this.smbLogMeta); }
public static string GetFormatFileNameBasis(IUserDefinedFactory factory) { string fname = System.IO.Path.GetFileName(factory.Location); string suffix = ".format.xml"; if (fname.EndsWith(suffix, StringComparison.InvariantCultureIgnoreCase)) { fname = fname.Remove(fname.Length - suffix.Length); } return(fname); }
void IFormatsWizardScenario.SetCurrentFormat(IUserDefinedFactory factory) { formatDoc.Load(factory.Location); ResetFormatDocument(); savePage.FileNameBasis = CustomFormatPageUtils.GetFormatFileNameBasis(factory); }
void IFormatsWizardScenario.SetCurrentFormat(IUserDefinedFactory udf) { }
void IFormatsWizardScenario.SetCurrentFormat(IUserDefinedFactory udf) { this.format = udf; confirmPage.UpdateView(format); }