dolibarr 19.0.3
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 <https://www.gnu.org/licenses/>.
15 * or see https://www.gnu.org/
16 */
17
18require_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}
Parent class for log handlers.
getInfo()
Content of the info tooltip.
checkConfiguration()
Function that checks if the configuration is valid.
getVersion()
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
configure()
Configuration variables of the module.
getWarning()
Return warning if something is wrong with logger.
isActive()
Is the module active ?
setIdent($ident)
Set current ident.