service/vendor/github.com/lestrrat-go/file-rotatelogs/event.go

18 lines
285 B
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package rotatelogs
func (h HandlerFunc) Handle(e Event) {
h(e)
}
func (e *FileRotatedEvent) Type() EventType {
return FileRotatedEventType
}
func (e *FileRotatedEvent) PreviousFile() string {
return e.prev
}
func (e *FileRotatedEvent) CurrentFile() string {
return e.current
}