natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.79k stars 591 forks source link

Make default file permissions more restrictive #83

Closed JAORMX closed 5 years ago

JAORMX commented 5 years ago

This asures that the process can still read and write its own log file, but that other users cannot. This is a fairly standard mode for log files in linux.

This addresses #82

mattsoftware commented 2 years ago

Any chance we can get this patch tagged and released? I am currently using aws/amazon-cloudwatch-agent which imports this utitity as gopkg.in/natefinch/lumberjack.v2 v2.0.0 which has overly permissive logfiles. This patch will fix that. Hopefully we can do a v2.0.1 or a v2.1 release?

Thank you