dolibarr
17.0.2
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
dolibarr_17.0
htdocs
core
modules
syslog
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
18
require_once DOL_DOCUMENT_ROOT.
'/core/modules/syslog/logHandlerInterface.php'
;
19
23
class
LogHandler
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
}
LogHandler\getWarning
getWarning()
Return warning if something is wrong with logger.
Definition:
logHandler.php:43
LogHandler
Parent class for log handlers.
Definition:
logHandler.php:23
LogHandler\isActive
isActive()
Is the module active ?
Definition:
logHandler.php:63
LogHandler\checkConfiguration
checkConfiguration()
Function that checks if the configuration is valid.
Definition:
logHandler.php:85
LogHandler\getInfo
getInfo()
Content of the info tooltip.
Definition:
logHandler.php:33
LogHandler\setIdent
setIdent($ident)
Set current ident.
Definition:
logHandler.php:96
LogHandler\getVersion
getVersion()
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Definition:
logHandler.php:53
LogHandler\configure
configure()
Configuration variables of the module.
Definition:
logHandler.php:73
Generated on Tue May 2 2023 01:01:12 for
dolibarr
by Doxygen 1.8.17