micro/util/log/README.md

16 lines
294 B
Markdown
Raw Normal View History

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