2019-05-31 00:35:04 +01:00
|
|
|
# Log
|
|
|
|
|
2019-12-18 16:12:25 +00:00
|
|
|
This is the global logger for all micro based libraries.
|
2019-05-31 00:35:04 +01:00
|
|
|
|
|
|
|
## Set Logger
|
|
|
|
|
|
|
|
Set the logger for micro libraries
|
|
|
|
|
|
|
|
```go
|
2019-05-31 00:38:05 +01:00
|
|
|
// import go-micro/util/log
|
2019-05-31 00:35:04 +01:00
|
|
|
import "github.com/micro/go-micro/util/log"
|
|
|
|
|
2019-12-18 16:12:25 +00:00
|
|
|
// SetLogger expects github.com/micro/go-micro/debug/log.Log interface
|
2019-05-31 00:35:04 +01:00
|
|
|
log.SetLogger(mylogger)
|
|
|
|
```
|