Vasiliy Tolstov
06136312bb
* regen files with never protoc * rewrite import path Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
24 lines
359 B
Go
24 lines
359 B
Go
package noop
|
|
|
|
import (
|
|
"github.com/unistack-org/micro/v3/debug/log"
|
|
)
|
|
|
|
type noop struct{}
|
|
|
|
func (n *noop) Read(...log.ReadOption) ([]log.Record, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (n *noop) Write(log.Record) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noop) Stream() (log.Stream, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func NewLog(opts ...log.Option) log.Log {
|
|
return new(noop)
|
|
}
|