OSDN Git Service

log into file (#357)
[bytom/vapor.git] / vendor / github.com / lestrrat-go / file-rotatelogs / event.go
diff --git a/vendor/github.com/lestrrat-go/file-rotatelogs/event.go b/vendor/github.com/lestrrat-go/file-rotatelogs/event.go
new file mode 100644 (file)
index 0000000..23047c4
--- /dev/null
@@ -0,0 +1,17 @@
+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
+}