e071084ebe
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
24 lines
342 B
Go
24 lines
342 B
Go
package noop
|
|
|
|
import (
|
|
"go-micro.dev/v6/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)
|
|
}
|