title: How to log a password in a log file?
body: <p>There are two ways to log any password - I do not see any problem with either of them. </p>
  
  <pre><code>1. Not log any password, just log the user.
  2. Log '******' against the password. logger.info("User=" + user + "logged with Password=******");
  </code></pre>
  
  <p>Do we have any best practices for these situations?</p>