dolibarr  7.0.0-beta
logHandler.php
1 <?php
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  * or see http://www.gnu.org/
16  */
17 
18 require_once DOL_DOCUMENT_ROOT.'/core/modules/syslog/logHandlerInterface.php';
19 
24 {
25  protected $ident=0;
26 
27 
33  public function getInfo()
34  {
35  return '';
36  }
37 
43  public function getWarning()
44  {
45  return '';
46  }
47 
53  public function getVersion()
54  {
55  return 'development';
56  }
57 
63  public function isActive()
64  {
65  return false;
66  }
67 
73  public function configure()
74  {
75  return array();
76  }
77 
85  public function checkConfiguration()
86  {
87  return array();
88  }
89 
96  public function setIdent($ident)
97  {
98  $this->ident+=$ident;
99  }
100 }
isActive()
Is the module active ?
Definition: logHandler.php:63
configure()
Configuration variables of the module.
Definition: logHandler.php:73
getWarning()
Return warning if something is wrong with logger.
Definition: logHandler.php:43
setIdent($ident)
Set current ident.
Definition: logHandler.php:96
getVersion()
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Definition: logHandler.php:53
checkConfiguration()
Function that checks if the configuration is valid.
Definition: logHandler.php:85
getInfo()
Content of the info tooltip.
Definition: logHandler.php:33
Parent class for log handlers.
Definition: logHandler.php:23