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 2019/05/16 06:51:55 UTC

[GitHub] [pulsar-client-go] wolfstudy opened a new pull request #12: package logrus for project

wolfstudy opened a new pull request #12: package logrus for project
URL: https://github.com/apache/pulsar-client-go/pull/12
 
 
   Signed-off-by: xiaolong.ran <ra...@gmail.com>
   
   package `logrus` for project.
   
   When we output log information, it is not recommended to capitalize the first letter. It is not recommended to add any punctuation at the end.
   
   If we can clearly know the type that needs to be printed, it is recommended to use the format of the specified type. If there is no way to know, you can use `%v`, `%#v` or `%+v`.
   
   ```
   Printf("%v", people)   {zhangsan},
   Printf("%+v", people)  {Name:zhangsan}
   Printf("%#v", people)   main.Human{Name:"zhangsan"}
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services