Skip to content

resurfaceio/logger-dotnet

Repository files navigation

resurfaceio-logger-dotnet

Easily log API requests and responses to your own security data lake.

License Contributing

Contents

Requires .NET 5 or later. No other dependencies to conflict with your app.

dotnet add package TestUsageLogger

After installing the module, add the following call to the Resurface middleware on Startup.Configure:

using Resurfaceio;

public class Startup
{
    // ...
    
    public void Configure(IApplicationBuilder app)
    {
        app.UseHttpLoggerForNET();
        
        // ...
    }
}

Logging With API

Loggers can be directly integrated into your application using our API. This requires the most effort compared with the options described above, but also offers the greatest flexibility and control.

API documentation

Loggers always have an active set of rules that control what data is logged and how sensitive data is masked. All of the examples above apply a predefined set of rules (include debug), but logging rules are easily customized to meet the needs of any application.

Logging rules documentation


© 2016-2024 Graylog, Inc.

Releases

No releases published

Packages

No packages published

Languages