This project demonstrates conditional logging of HTTP Requests, including request body and response body. Whether requests are logged depends upon settings in a separate configuration file and how the middleware is called from within Startup.Configure. In the configuration file, you specify whether the middleware is enabled, the maximum lengths for request and response bodies, whether to include headers and claims in the logs, which claim types/values can trigger the logging and what query key can trigger the logging. In the Startup.Configure, you can use the standard app.UseWhen or one of the provided extension methods -- UseHttpLoggingWhen or UseHttpLoggingFor -- to perform the logging only under certain circumstances (e.g., particular endpoints). Note: the sample projects use Seq, which you can get from https://datalust.co/download.
edennis.exploringhttplogging's Introduction
edennis.exploringhttplogging's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.