27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
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(5, 4);
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,
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
Class to enable/disable module Logs.
__construct($db)
Constructor.