2014-02-26 10:47:02 +01:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
namespace Icinga\Logger;
|
|
|
|
|
2014-04-22 14:31:57 +02:00
|
|
|
use Zend_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
|
|
|
|
*/
|
|
|
|
abstract public function __construct(Zend_Config $config);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Log a message with the given severity
|
|
|
|
*/
|
|
|
|
abstract public function log($severity, $message);
|
|
|
|
}
|