server/lib/private/Log
Roland Tapken d17856a1e9
Make logfile's mode configurable.
The file logger currently resets the mode of the logfile to 0640.

When the webserver is running as a different user than the cron job
(but both are in the same group) the files mode has to be 0660. The
current implementation breaks logging for the user that is not the
owner of the logfile.

This patch introduces a new config option 'logfilemode' that expects
an octal value (defaults to 0640). Unless the value is lower or equal
than 0 the logfiles mode will be resetted to this value.

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2018-10-02 18:27:06 +02:00
..
ErrorHandler.php
Errorlog.php offer API to create own File log. admin_audit makes use of it 2018-04-26 12:10:52 +02:00
ExceptionSerializer.php make exception serializer a bit more robust 2018-07-18 16:56:34 +02:00
File.php Make logfile's mode configurable. 2018-10-02 18:27:06 +02:00
LogFactory.php Added a logger for systemd/journald 2018-06-29 10:37:45 +02:00
Rotate.php log to $datadir/audit.log by default and add rotation 2018-04-26 12:10:53 +02:00
Syslog.php Added Systemd.log documentation to config.sample.php 2018-06-29 10:37:46 +02:00
Systemdlog.php Revert "Fix undeclared method warning in phan" 2018-07-03 17:46:11 +02:00