Line 1:
Line 1:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
+
+
+
+
+
= Functions =
= Functions =
Following function allows to log informations in Dolibarr log file
Following function allows to log informations in Dolibarr log file
−
dolibarr_syslog($message, LOG_DEBUG|LOG_INFO|LOG_WARNING|LOG_ERR);
+
dol_syslog($message, LOG_DEBUG|LOG_INFO|LOG_WARNING|LOG_ERR);
The log level is related to setup defined in module Syslog (see lower).
The log level is related to setup defined in module Syslog (see lower).
Following function can be used to add error information on screen. Usage must be reserved in never reached code.
Following function can be used to add error information on screen. Usage must be reserved in never reached code.
−
dolibarr_print_error($db,texte);
+
dol_print_error($db,texte);
= Module Syslog =
= Module Syslog =