diff --git a/lumberjack.go b/lumberjack.go index 46d97c5..a40441c 100644 --- a/lumberjack.go +++ b/lumberjack.go @@ -212,7 +212,7 @@ func (l *Logger) openNew() error { } name := l.filename() - mode := os.FileMode(0644) + mode := os.FileMode(0600) info, err := os_Stat(name) if err == nil { // Copy the mode off the old logfile.