Easily log API requests and responses to your own security data lake.
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();
// ...
}
}
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.
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.
© 2016-2024 Graylog, Inc.