Changes

m
no edit summary
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_INFO|LOG_DEBUG|LOG_ERR);
+
dolibarr_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)  
+
dolibarr_print_error($db,texte);
   −
== Module Syslog ==  
+
= 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.