31,034
edits
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateDocDevEn}} | {{TemplateDocDevEn}} | ||
== Functions == | |||
Following function allows to log informations in Dolibarr log file | |||
dolibarr_syslog($message, LOG_INFO|LOG_DEBUG|LOG_ERR); | |||
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. | |||
dolibarr_print_error($db,texte) | |||
== Module Syslog == | |||
The error reporting module is integrated in the Dolibarr administration tool and allows you to configure what level of errors you would like to be reported and where. | The error reporting module is integrated in the Dolibarr administration tool and allows you to configure what level of errors you would like to be reported and where. | ||