config.php: update LogDriver configuration

This commit is contained in:
Zankaria 2024-10-04 13:10:38 +02:00
parent 268bd84128
commit cca8d88d91

View file

@ -66,18 +66,25 @@
// Deprecated, use 'log_system'. // Deprecated, use 'log_system'.
$config['syslog'] = false; $config['syslog'] = false;
$config['log_system'] = []; $config['log_system'] = [
// Log all error messages and unauthorized login attempts. /*
// Can be "syslog", "error_log" (default), "file", "stderr" or "none". * Log all error messages and unauthorized login attempts.
$config['log_system']['type'] = 'error_log'; * Can be "syslog", "error_log" (default), "file", or "stderr".
*/
'type' => 'error_log',
// The application name used by the logging system. Defaults to "tinyboard" for backwards compatibility. // The application name used by the logging system. Defaults to "tinyboard" for backwards compatibility.
$config['log_system']['name'] = 'tinyboard'; 'name' => 'tinyboard',
// Only relevant if 'log_system' is set to "syslog". If true, double print the logs also in stderr. /*
// Defaults to false. * Only relevant if 'log_system' is set to "syslog". If true, double print the logs also in stderr. Defaults to
$config['log_system']['syslog_stderr'] = false; * false.
// Only relevant if "log_system" is set to `file`. Sets the file that vichan will log to. */
// Defaults to '/var/log/vichan.log'. 'syslog_stderr' => false,
$config['log_system']['file_path'] = '/var/log/vichan.log'; /*
* Only relevant if "log_system" is set to `file`. Sets the file that vichan will log to. Defaults to
* '/var/log/vichan.log'.
*/
'file_path' => '/var/log/vichan.log',
];
// Use `host` via shell_exec() to lookup hostnames, avoiding query timeouts. May not work on your system. // Use `host` via shell_exec() to lookup hostnames, avoiding query timeouts. May not work on your system.
// Requires safe_mode to be disabled. // Requires safe_mode to be disabled.