gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/util/log/README.md (about)

     1  # Log
     2  
     3  This is the global logger for all micro based libraries which makes use of [github.com/go-log/log](https://github.com/go-log/log). 
     4  
     5  It defaults the logger to the stdlib log implementation. 
     6  
     7  ## Set Logger
     8  
     9  Set the logger for micro libraries
    10  
    11  ```go
    12  // import go-micro/util/log
    13  import "gitee.com/liuxuezhan/go-micro-v1.18.0/util/log"
    14  
    15  // SetLogger expects github.com/go-log/log.Logger interface
    16  log.SetLogger(mylogger)
    17  ```