github.com/furusax0621/goa-v1@v1.4.3/logging/doc.go (about) 1 /* 2 Package logging contains logger adapters that make it possible for goa to log messages to various 3 logger backends. Each adapter exists in its own sub-package named after the corresponding logger 4 package. 5 6 Once instantiated adapters can be used by setting the goa service logger with WithLogger: 7 8 ```go 9 func main() { 10 // ... 11 12 // Setup logger adapter 13 logger := log15.New() 14 15 // Create service 16 service := goa.New("my service") 17 service.WithLogger(goalog15.New(logger)) 18 19 // ... 20 } 21 ``` 22 23 See http://goa.design/implement/logging/ for details. 24 */ 25 package logging