47 $this->family =
"base";
49 $this->module_position =
'75';
51 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
53 $this->
description =
"Activate debug logs (syslog)";
55 $this->core_enabled = 1;
57 $this->version =
'dolibarr';
59 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
64 $this->dirs = array();
67 $this->config_page_url = array(
"syslog.php");
70 $this->hidden =
false;
71 $this->depends = array();
72 $this->requiredby = array();
73 $this->conflictwith = array();
74 $this->phpmin = array(7, 0);
77 $this->
const = array();
80 $this->boxes = array();
83 $this->rights = array();
84 $this->rights_class =
'syslog';
87 $comment =
'Compress and archive log files. The number of versions to keep is defined into the setup of module. ';
88 $comment .=
'Warning: Main application cron script must be run with same account than your web server to avoid to get log files with different owner than required by web server. ';
89 $comment .=
'Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group.';
91 $this->cronjobs = array(
93 'label' =>
'CompressSyslogs',
94 'jobtype' =>
'method',
95 'class' =>
'core/class/utils.class.php',
96 'objectname' =>
'Utils',
97 'method' =>
'compressSyslogs',
99 'comment' => $comment,
101 'unitfrequency' => 3600 * 24,