ProboCI / probo-request-logger

A simple logging middleware for bunyan compatible loggers.
0 stars 0 forks source link

Allow for some URL parameters to be hidden in the log #2

Closed tortillaj closed 6 years ago

tortillaj commented 7 years ago

This PR simply adds the ability to hide some URL parameters from being printed in logs. For example, if the url has a token of some kind as a query string parameter, we'd like for that to not be revealed in the log.

I think one way to test this is to check it out in vagrant, then overwrite the package in node_modules within probo-web ... You can feed the config an array of rewriteParams and a string of replacementText (though there are defaults in code too).

tortillaj commented 7 years ago

@lliss @tizzo - any chance we can have a review on this soon? If so, I have Probo time today and tomorrow, and could get the other projects using an updated request logger.