Go-Micro Logger Plugin
The Micro logger
plugin is a Goa plugin
that adapt the logger to use the gomicro logger library.
Enabling the Plugin
To enable the plugin import it in your design.go file using the blank identifier _
as follows:
package design
import . "goa.design/goa/v3/http/design"
import . "goa.design/goa/v3/http/dsl"
import _ "github.com/backyio/backy-goa-gen/gomicro" // Enables the plugin
var _ = API("...
and generate as usual:
goa gen PACKAGE
goa example PACKAGE
where PACKAGE
is the Go import path of the design package.