Matt Holt
1f927d6b07
log: Only chmod if permission bits differ; make log dir ( #6761 )
...
* log: Only chmod if permission bits differ
Follow-up to #6314 and https://caddy.community/t/caddy-2-9-0-breaking-change/27576/11
* Fix test
* Refactor FileWriter
* Ooooh octal... right...
2025-01-07 21:51:03 -07:00
Ririsoft
8e0d3e1ec5
logging: set file mode when the file already exist ( #6391 )
...
101d3e7
introduced a configuration option to set the log file mode.
This option was not taken into account if the file already exists,
making users having to delete their logs to have new logs created
with the right mode.
2024-06-12 15:17:46 -06:00
Ririsoft
0bc27e5fb1
logging: fix file mode configuration parsing ( #6383 )
...
Commit 101d3e7
introduced file mode setting,
but was missing a JSON Marshaller so that
CaddyFile can be converted to JSON safely.
2024-06-08 11:34:18 -06:00
Ririsoft
101d3e7407
logging: Customize log file permissions ( #6314 )
...
Adding a "mode" option to overwrite the default logfile permissions.
Default remains "0600" which is the one currently used by lumberjack.
2024-06-06 08:33:34 -06:00