Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF | .Net API for WAF Systems

ILoggerReportingExtensions Class

Enables the FireWall to send incidents to the ILogger interface of the application using a specific log level.

Namespace:  Microsoft.Extensions.DependencyInjection
Assembly:  Walter.Web.FireWall.ILogger (in Walter.Web.FireWall.ILogger.dll)


public static class ILoggerReportingExtensions


You can specify the importance you would like to give the firewall incidents when reporting the incidents to the ILogger interface you are using. All types of incidents as well as the "expiry" info messages of these incidents will be logged with the same log level.


You find the ILogger extension method for the Walter.Waf.Web.IFirewall in NuGet package Walter.Web.FireWall.ILoggerReporting
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey
    , domainName: new Uri("", UriKind.Absolute)
    , options =>
        options.Cypher.ApplicationPassword = "123456$even";
        options.ApplicationName = "Name as used for reporting";
        options.ApplicationTag = "ITIL Tag";
        options.Rules.BlockRequest.BlockDuration.SlideExpiration = true;
        options.Rules.BlockRequest.BlockDuration.Expires = TimeSpan.FromSeconds(10);

        //used by JavaScript in the browser
        options.WebServices.IsUserApiUrl = new Uri(Links.IsUserEndpoint, UriKind.Relative);
        options.WebServices.RegisterLinksApiUrl = new Uri(Links.SiteMapEndPoint, UriKind.Relative);
        options.WebServices.BeaconApiUrl = new Uri(Links.BeaconPoint, UriKind.Relative);

}).UseILoggerLogging(level: Microsoft.Extensions.Logging.LogLevel.Critical);