forked from Wavyzz/dolibarr
Add param logcontext on dol_syslog
This commit is contained in:
@@ -995,10 +995,11 @@ function dol_strtoupper($utf8_string)
|
|||||||
* On Linux LOG_ERR=3, LOG_WARNING=4, LOG_INFO=6, LOG_DEBUG=7
|
* 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 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 $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
|
* @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;
|
global $conf, $user, $debugbar;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user