diff --git a/dev/SysLogWriter.php b/dev/SysLogWriter.php index 79c4b11a2..5d623a78f 100644 --- a/dev/SysLogWriter.php +++ b/dev/SysLogWriter.php @@ -29,6 +29,14 @@ class SS_SysLogWriter extends Zend_Log_Writer_Abstract { public function __destruct() { closelog(); } + + /** + * @param $option See {@link __construct} + * @return SS_SysLogWriter + */ + static public function factory($config) { + return new SS_SysLogWriter(null, $config); + } /** * Write to the system log with the event details.