Gestión de errores: Difference between revisions

m
Updating interlang links (links to translated versions of this page in other languages) triggered by origin English page "Error_reporting" update.
m (Updating interlang links (links to translated versions of this page in other languages) triggered by origin English page "Error_reporting" update.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- BEGIN interlang links -->
<!-- Do NOT edit this section
    Links below are automatically managed by PolyglotBot
    You can edit links on the English source page : Error_reporting -->
[[en:Error_reporting]]
[[fr:Gestion_d'erreur]]
[[zh:错误处理]]
<!-- END interlang links -->
[[Category:Básico]]
[[Category:Básico]]
{{TemplateDocDesarrollo}}
{{TemplateDocDesarrollo}}


= Las funciones =
= Las funciones =
La siguiente función le permite rastrear información en el archivo de registro Dolibarr
La siguiente función le permite rastrear información en el archivo de registro Dolibarr
dol_syslog($message, LOG_DEBUG|LOG_INFO|LOG_WARN|LOG_ERR);
<source lang="php">dol_syslog($message, LOG_DEBUG|LOG_INFO|LOG_WARN|LOG_ERR);</source>


La siguiente función provoca un mensaje de error
La siguiente función provoca un mensaje de error
dol_print_error($db,texte)
<source lang="php">dol_print_error($db,texte)</source>


= Módulo Syslog =
= Módulo Syslog =
Line 32: Line 47:


En una instalación típica de Linux, los logs suelen estar disponibles en '''/var/log/apache[2]/[dolibarr]-error.log'''. Puede verlos en ''vivo'' desde un terminal usando:
En una instalación típica de Linux, los logs suelen estar disponibles en '''/var/log/apache[2]/[dolibarr]-error.log'''. Puede verlos en ''vivo'' desde un terminal usando:
  tail -f /var/log/apache2/dolibarr-error.log
<source lang="bash">tail -f /var/log/apache2/dolibarr-error.log</source>
2,052

edits