Thomas Gelf 629118b590 LogWriter: setting config must not be abstract
Storing the given config makes sense as default action, no need to
abstract the constructor per default.

refs #7636
2014-11-11 19:39:15 +01:00

32 lines
597 B
PHP

<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Application\Logger;
use Icinga\Application\Config;
/**
* Abstract class for writers that write messages to a log
*/
abstract class LogWriter
{
/**
* @var Zend_Config
*/
protected $config;
/**
* Create a new log writer initialized with the given configuration
*/
public function __construct(Config $config)
{
$this->config = $config;
}
/**
* Log a message with the given severity
*/
abstract public function log($severity, $message);
}