go-log/discard_router.go

19 lines
276 B
Go

package flog
var (
singltonDiscardRouter = DiscardRouter{}
)
func NewDiscardRouter() *DiscardRouter {
return &singltonDiscardRouter
}
type DiscardRouter struct{}
func (router *DiscardRouter) Route(message string, context map[string]interface{}) error {
return nil
}