Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.97 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.97 KB

raccoonLog

The library development is in progress.

codecov Build Status

What is raccoonLog?

raccoonLog is a logging library that supports HTTP request/response logging in ASP.NET Core 2.2+

Features

  • Log request/response in console
  • Custom form content requests logging
  • Sensitive data protection in request/response (body limitation)
  • Ignoring content types and headers in request/response
  • Use System.Text.Json as JSON API
  • Use System.IO.Pipelines as I/O API
  • Easy to configure
  • File data store
  • Custom data store

Packages

Package name Version
raccoonLog.Http NuGet

Quick Start

Use following startup codes to configure raccoonLog in you ASP.NET Core application

Learn more in documentation

public void ConfigureServices(IServiceCollection services)
{
    services.AddRaccoonLog(builder =>
    {
        builder.AddHttpLogging()
               .AddFileStore();
    });
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    app.UseRaccoonLog(builder =>
    {
        builder.EnableHttpLogging();
    });
}

Blogs

Contribution

This library is young, as young as me and it needs to represent more abilities as a library therefore I need your help for bugs, features, performance improvement.

Feel free to open PR/issue.