amuz.es/src/infra/goutils@v0.1.3/logger/zap/wrapped.go (about)

     1  package zap
     2  
     3  import (
     4  	"go.uber.org/zap/zapcore"
     5  )
     6  
     7  type zapWrappedSyncer struct {
     8  	zapcore.WriteSyncer
     9  }
    10  
    11  func (r *zapWrappedSyncer) SetOnClose(closeFunc func()) {}
    12  func (r *zapWrappedSyncer) Rotate() (err error)         { return }
    13  func (r *zapWrappedSyncer) Close() (err error)          { return }
    14  func (r *zapWrappedSyncer) Sync() error                 { return r.WriteSyncer.Sync() }