How to *not* log passwords while debugging

Hi,

I came across this topic while testing/debugging .

Which is the best way to prevent logging for specific routes/ actions?

Sven