Append .log extension to logfiles

This commit is contained in:
Sergey Matveev 2015-10-08 12:58:50 +03:00
parent a4ce3f8999
commit df1aca605d

View File

@ -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)