2014-02-26 10:47:02 +01:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
2014-10-31 10:27:17 +01:00
|
|
|
namespace Icinga\Application\Logger;
|
2014-02-26 10:47:02 +01:00
|
|
|
|
2014-11-07 13:53:03 +01:00
|
|
|
use Icinga\Application\Config;
|
2014-02-26 10:47:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Abstract class for writers that write messages to a log
|
|
|
|
*/
|
|
|
|
abstract class LogWriter
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create a new log writer initialized with the given configuration
|
|
|
|
*/
|
2014-11-07 13:53:03 +01:00
|
|
|
abstract public function __construct(Config $config);
|
2014-02-26 10:47:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Log a message with the given severity
|
|
|
|
*/
|
|
|
|
abstract public function log($severity, $message);
|
|
|
|
}
|