dolibarr/htdocs/core/modules/syslog/logHandlerInterface.php

87 lines
1.8 KiB
PHP
Raw Normal View History

<?php
2015-01-06 17:54:36 +01:00
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* or see https://www.gnu.org/
2015-01-06 17:54:36 +01:00
*/
/**
* \file htdocs/core/modules/syslog/logHandlerInterface.php
* \ingroup syslog
* \brief LogHandlerInterface
*/
2012-11-11 17:50:24 +01:00
/**
* LogHandlerInterface
*/
interface LogHandlerInterface
{
2012-11-11 17:50:24 +01:00
/**
* Return name of logger
*
* @return string Name of logger
*/
public function getName();
2012-11-11 17:50:24 +01:00
/**
* Return version of logger
*
* @return string Version of logger
*/
public function getVersion();
2012-11-11 17:50:24 +01:00
/**
* Return information on logger
*
* @return string Version of logger
*/
public function getInfo();
2012-11-11 17:50:24 +01:00
/**
* Return warning if something is wrong with logger
*
* @return string Warning message
*/
public function getWarning();
2019-09-23 21:55:30 +02:00
2012-11-11 17:50:24 +01:00
/**
* Return array of configuration data
*
* @return array Return array of configuration data
*/
public function configure();
2012-11-11 17:50:24 +01:00
/**
* Return if configuration is valid
*
* @return boolean True if configuration ok
*/
public function checkConfiguration();
2012-11-11 17:50:24 +01:00
/**
2024-02-18 15:01:19 +01:00
* Is the logger active ?
2012-11-11 17:50:24 +01:00
*
2024-02-18 15:01:19 +01:00
* @return int 1 if logger enabled
2012-11-11 17:50:24 +01:00
*/
public function isActive();
2012-11-11 17:50:24 +01:00
/**
* Output log content
*
* @param string $content Content to log
* @return void
*/
public function export($content);
2019-02-03 15:21:21 +01:00
}