diff --git a/events.go b/events.go index 44974b8..bc659a6 100644 --- a/events.go +++ b/events.go @@ -70,7 +70,7 @@ func Logger(logdir string, events <-chan LogEvent) { var fd *os.File var err error for event := range events { - logfile = path.Join(logdir, event.where) + logfile = path.Join(logdir, event.where + ".log") fd, err = os.OpenFile(logfile, mode, perm) if err != nil { log.Println("Can not open logfile", logfile, err)