This repository has been archived on 2022-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
2018-06-06 15:30:23 +09:00
|
|
|
package logger
|
|
|
|
|
|
|
|
import "io"
|
|
|
|
|
|
|
|
type WriteSyncer interface {
|
2018-06-10 16:57:59 +09:00
|
|
|
io.WriteCloser
|
2018-06-06 15:30:23 +09:00
|
|
|
Sync() error
|
|
|
|
}
|
|
|
|
|
|
|
|
type RotateSyncer interface {
|
|
|
|
WriteSyncer
|
|
|
|
SetOnClose(func())
|
|
|
|
Rotate() error
|
|
|
|
}
|