Skip to content

mjebrahimi/raccoonLog

 
 

Repository files navigation

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.

About

The logging library for log HTTP Request/Response (Yet) and store them in various data stores.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Shell 0.2%