From df1aca605d645d0db48f9bacdcb7354bbdc1c5ee Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 8 Oct 2015 12:58:50 +0300 Subject: [PATCH] Append .log extension to logfiles --- events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)