From cca8d88d91dca6706a9bfd53488ed52de264ffad Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 4 Oct 2024 13:10:38 +0200 Subject: [PATCH] config.php: update LogDriver configuration --- inc/config.php | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/inc/config.php b/inc/config.php index 64fd9fe3..25031bfb 100644 --- a/inc/config.php +++ b/inc/config.php @@ -66,18 +66,25 @@ // Deprecated, use 'log_system'. $config['syslog'] = false; - $config['log_system'] = []; - // Log all error messages and unauthorized login attempts. - // Can be "syslog", "error_log" (default), "file", "stderr" or "none". - $config['log_system']['type'] = 'error_log'; - // The application name used by the logging system. Defaults to "tinyboard" for backwards compatibility. - $config['log_system']['name'] = 'tinyboard'; - // Only relevant if 'log_system' is set to "syslog". If true, double print the logs also in stderr. - // Defaults to false. - $config['log_system']['syslog_stderr'] = false; - // Only relevant if "log_system" is set to `file`. Sets the file that vichan will log to. - // Defaults to '/var/log/vichan.log'. - $config['log_system']['file_path'] = '/var/log/vichan.log'; + $config['log_system'] = [ + /* + * Log all error messages and unauthorized login attempts. + * 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. + 'name' => 'tinyboard', + /* + * Only relevant if 'log_system' is set to "syslog". If true, double print the logs also in stderr. Defaults to + * false. + */ + 'syslog_stderr' => false, + /* + * 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. // Requires safe_mode to be disabled.