protected override void RegisterCollectors(ILogifyClientConfiguration config) { IgnorePropertiesInfoConfig ignoreConfig = config.IgnoreConfig; if (ignoreConfig == null) { ignoreConfig = new IgnorePropertiesInfoConfig(); } //Collectors.Add(new DevelopementPlatformCollector(Platform.ASP)); // added in constuctor Collectors.Add(new NetCoreWebApplicationCollector()); HttpContext context = LogifyHttpContext.Current; if (context != null) { if (context.Request != null) { Collectors.Add(new RequestCollector(context.Request, ignoreConfig)); } if (context.Response != null) { Collectors.Add(new ResponseCollector(context.Response, ignoreConfig)); } //if (context.ApplicationInstance != null && context.ApplicationInstance.Modules != null) // Collectors.Add(new ModulesCollector(context.ApplicationInstance.Modules)); } Collectors.Add(new OperatingSystemCollector()); //Collectors.Add(new VirtualMachineCollector()); Collectors.Add(new DebuggerCollector()); //Collectors.Add(new MemoryCollector(config)); //Collectors.Add(new FrameworkVersionsCollector()); }
public ResponseCollector(HttpResponse response, string name, IgnorePropertiesInfoConfig ignoreConfig) { this.response = response; this.name = name; this.ignoreHeaders = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreHeaders); //this.ignoreCookies = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreCookies); }
public RequestCollector(HttpRequest request, string name, IgnorePropertiesInfoConfig ignoreConfig) { this.request = request; this.name = name; this.ignoreFormFields = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreFormFields); this.ignoreHeaders = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreHeaders); this.ignoreCookies = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreCookies); this.ignoreServerVariables = IgnorePropertiesInfo.FromString(ignoreConfig.IgnoreServerVariables); this.ignoreRequestBody = ignoreConfig.IgnoreRequestBody; }
public ResponseCollector(HttpResponse response, IgnorePropertiesInfoConfig ignoreConfig) : this(response, "response", ignoreConfig) { }
public RequestCollector(HttpRequest request, IgnorePropertiesInfoConfig ignoreConfig) : this(request, "request", ignoreConfig) { }