event_log.go 406 B

1234567891011121314151617181920
  1. /*
  2. * SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. package y
  6. import "golang.org/x/net/trace"
  7. var (
  8. NoEventLog trace.EventLog = nilEventLog{}
  9. )
  10. type nilEventLog struct{}
  11. func (nel nilEventLog) Printf(format string, a ...interface{}) {}
  12. func (nel nilEventLog) Errorf(format string, a ...interface{}) {}
  13. func (nel nilEventLog) Finish() {}