From c60fc6c3d42ed065b19ffd3a102cb8d28669193d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 20 Aug 2019 13:57:25 +0200 Subject: [PATCH] Add param logcontext on dol_syslog --- htdocs/core/lib/functions.lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 87f5b0a771f..75729cbb4f9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -995,10 +995,11 @@ function dol_strtoupper($utf8_string) * On Linux LOG_ERR=3, LOG_WARNING=4, LOG_INFO=6, LOG_DEBUG=7 * @param int $ident 1=Increase ident of 1, -1=Decrease ident of 1 * @param string $suffixinfilename When output is a file, append this suffix into default log filename. - * @param string $restricttologhandler Output log only for this log handler + * @param string $restricttologhandler Force output of log only to this log handler + * @param array|null $logcontext If defined, an array with extra informations (can be used by some log handlers) * @return void */ -function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename = '', $restricttologhandler = '') +function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename = '', $restricttologhandler = '', $logcontext = null) { global $conf, $user, $debugbar;