Skip to content

Commit

Permalink
docs(logging): add docs masking options of logging interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
amarlankri committed Dec 5, 2023
1 parent 7aa4f48 commit 759c2ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/logging-interceptor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ import { LoggingInterceptor } from '@algoan/nestjs-logging-interceptor';
new LoggingInterceptor({
disableMasking: true, // Ignore masking options in the entire applications
maskingPlaceholder: 'hidden', // Replace the default placeholder '****' by a custom one
mask: {
requestHeader: {
password: true, // Mask the header 'password' in the request
authorization: (header: string | string[]) => {
... // Handle the header value to keep non sensitve data for instance
}
},
},
}),
},
],
Expand Down

0 comments on commit 759c2ec

Please sign in to comment.