Пример #1
0
        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());
        }
Пример #2
0
 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);
 }
Пример #3
0
 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;
 }
Пример #4
0
 public ResponseCollector(HttpResponse response, IgnorePropertiesInfoConfig ignoreConfig) : this(response, "response", ignoreConfig)
 {
 }
Пример #5
0
 public RequestCollector(HttpRequest request, IgnorePropertiesInfoConfig ignoreConfig) : this(request, "request", ignoreConfig)
 {
 }