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

     1  package logger
     2  
     3  import "io"
     4  
     5  type WriteSyncer interface {
     6  	io.WriteCloser
     7  	Sync() error
     8  }
     9  
    10  type RotateSyncer interface {
    11  	WriteSyncer
    12  	SetOnClose(func())
    13  	Rotate() error
    14  }