event_log.go raw

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