mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 18:48:22 +01:00
61 lines
949 B
PHP
61 lines
949 B
PHP
<?php
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/modules/syslog/logHandlerInterface.php';
|
|
|
|
/**
|
|
* Parent class for log handlers
|
|
*/
|
|
class LogHandler
|
|
{
|
|
/**
|
|
* Content of the info tooltip.
|
|
*
|
|
* @return false|string
|
|
*/
|
|
public function getInfo()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getVersion()
|
|
{
|
|
return 'development';
|
|
}
|
|
|
|
/**
|
|
* ¿Is the module active?
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function isActive()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Configuration variables of the module
|
|
*
|
|
* @return array
|
|
*/
|
|
public function configure()
|
|
{
|
|
return array();
|
|
}
|
|
|
|
/**
|
|
* Function that checks if the configuration is valid.
|
|
* It will be called after setting the configuration.
|
|
* The function returns an array with error messages
|
|
*
|
|
* @return array
|
|
*/
|
|
public function checkConfiguration()
|
|
{
|
|
return array();
|
|
}
|
|
} |