You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/06 11:28:26 UTC

[GitHub] [pulsar-client-go] yuanweikang2020 edited a comment on issue #430: Disable logger

yuanweikang2020 edited a comment on issue #430:
URL: https://github.com/apache/pulsar-client-go/issues/430#issuecomment-755245818


   like this.  
   
   ```
   func init() {
     // Log as JSON instead of the default ASCII formatter.
     logrus.SetFormatter(&logrus.JSONFormatter{})
   
     // Output to stdout instead of the default stderr
     // Can be any io.Writer, see below for File example
     logrus.SetOutput(os.Stdout)
   
     // Only log the warning severity or above.
     logrus.SetLevel(logrus.WarnLevel)
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org