github.heygears.com/openimsdk/tools@v0.0.49/log/file-rotatelogs/event.go (about) 1 package rotatelogs 2 3 func (h HandlerFunc) Handle(e Event) { 4 h(e) 5 } 6 7 func (e *FileRotatedEvent) Type() EventType { 8 return FileRotatedEventType 9 } 10 11 func (e *FileRotatedEvent) PreviousFile() string { 12 return e.prev 13 } 14 15 func (e *FileRotatedEvent) CurrentFile() string { 16 return e.current 17 }