github.com/micro/go-micro/v2@v2.9.1/util/log/README.md (about)

     1  # Log
     2  
     3  DEPRECATED: use github.com/micro/go-micro/v2/logger interface
     4  
     5  This is the global logger for all micro based libraries.
     6  
     7  ## Set Logger
     8  
     9  Set the logger for micro libraries
    10  
    11  ```go
    12  // import go-micro/util/log
    13  import "github.com/micro/go-micro/util/log"
    14  
    15  // SetLogger expects github.com/micro/go-micro/debug/log.Log interface
    16  log.SetLogger(mylogger)
    17  ```