natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.76k stars 585 forks source link

old log file permission mode should be read-only for security? #120

Open ifls opened 3 years ago

ifls commented 3 years ago

when log file is rotated, the log file new the same permission mode w+r. the history log file should change to a read-only mode or allow to set file mode?

counten commented 2 years ago

if the permssion of logfile,old logfile,log dir can be set from the construct parameters would be better