30,909
edits
m (→Module Syslog) |
mNo edit summary |
||
| Line 20: | Line 20: | ||
Pour atteindre la page de configuration de ce module, aller sur la page Accueil->Configuration->Modules et cliquez sur l'icon en fin de ligne sur la ligne du module ''Syslog''. | Pour atteindre la page de configuration de ce module, aller sur la page Accueil->Configuration->Modules et cliquez sur l'icon en fin de ligne sur la ligne du module ''Syslog''. | ||
Bien sur, ce module ('''Syslog''') doit être activé pour que les traces | Bien sur, ce module ('''Syslog''') doit être activé pour que les traces fonctionnent. | ||
{{ToTranslate}} | {{ToTranslate}} | ||
The '''facility''' option allows you to use pre-set facilities to log your errors. Facilities are a system-level feature to tell your syslog operator where this error comes from, to judge priority and all that. You can find more about this inside the PHP documentation for the ''openlog()'' function which is used inside the '' | The '''facility''' option allows you to use pre-set facilities to log your errors. Facilities are a system-level feature to tell your syslog operator where this error comes from, to judge priority and all that. You can find more about this inside the PHP documentation for the ''openlog()'' function which is used inside the ''dol_syslog()'' function: http://www.php.ne/openlog | ||
Really, you should leave it to '''LOG_USER''' unless you know exactly what you're doing. | Really, you should leave it to '''LOG_USER''' unless you know exactly what you're doing. | ||
| Line 30: | Line 30: | ||
Generally, the '''file''' facility will work more easily because it doesn't depend on your server configuration (or only for the directory that needs to be writeable). | Generally, the '''file''' facility will work more easily because it doesn't depend on your server configuration (or only for the directory that needs to be writeable). | ||
Finally, the level of reporting is how many types of errors you want to report. LOG_DEBUG(7) is the strongest option, reporting pretty much everything that calls a | Finally, the level of reporting is how many types of errors you want to report. LOG_DEBUG(7) is the strongest option, reporting pretty much everything that calls a dol_syslog() function. LOG_EMERG(0) is the opposite, letting you see only the errors that would really block your system. | ||
On a typical Linux install, the logs will then be available somewhere in '''/var/log/apache[2]/[dolibarr]-error.log'''. You can watch it ''live'' from the terminal by using: | On a typical Linux install, the logs will then be available somewhere in '''/var/log/apache[2]/[dolibarr]-error.log'''. You can watch it ''live'' from the terminal by using: | ||
tail -f /var/log/apache2/dolibarr-error.log | tail -f /var/log/apache2/dolibarr-error.log | ||