title: Dont print secrets in log
body: <p>I am using <a href="https://github.com/uber-go/zap" rel="nofollow noreferrer">Zap</a> logger and I want to limit the information that gets logged. For example , I have below code snippet</p>
  
  <pre><code>func (m *mountCommand) Execute(args []string) error {
  
      filelogger.Info("First log", zap.Strings("input args", args))
  </code></pre>
  
  <p>And the log output is as below</p>
  
  <pre><code>    {"level":"info","ts":"2017-11-16T10:04:40.225Z","msg":"First log","input args":["/var/lib/kubelet/pods/74785895-cab5-11e7-88ed-ce1c8b57856c/volumes/xyz-xandndnd",
      "{\"kubernetes.io/secret/access-key\":\"Qdfnnfbbdnsjnxni8ehh=\",\"kubernetes.io/secret/secret-key\":\"GGHNHwsffUIJMNBNBVV==\",
  \"parallel-count\":\"5\",\"region\":\"iam-standard\"}"]}
  </code></pre>
  
  <p>How do I just prevent the access-key and secret-key values from getting added to the log due to sensitivity of the data.</p>
  
  <p>I tried many string manipulation functions in Go so that I can just remove those contents before using the zap object.There seems no simple function to get this done in a straight forward simple way.</p>