From f11751c42dd0050ee5803265ade04b92c7c1815a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 30 May 2011 21:30:32 +1200 Subject: [PATCH] MINOR Fixed SS_LogEmailWriter and SS_LogFileWriter to adhere to new Zend interface --- dev/LogEmailWriter.php | 4 ++++ dev/LogFileWriter.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dev/LogEmailWriter.php b/dev/LogEmailWriter.php index c98d2f385..af5a93e0d 100644 --- a/dev/LogEmailWriter.php +++ b/dev/LogEmailWriter.php @@ -24,6 +24,10 @@ class SS_LogEmailWriter extends Zend_Log_Writer_Abstract { $this->emailAddress = $emailAddress; $this->customSmtpServer = $customSmtpServer; } + + static function factory($emailAddress, $customSmtpServer = false) { + return new SS_LogEmailWriter($emailAddress, $customSmtpServer); + } public static function set_send_from($address) { self::$send_from = $address; diff --git a/dev/LogFileWriter.php b/dev/LogFileWriter.php index 173203ef2..27a0ec403 100644 --- a/dev/LogFileWriter.php +++ b/dev/LogFileWriter.php @@ -43,6 +43,10 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract { $this->messageType = $messageType; $this->extraHeaders = $extraHeaders; } + + static function factory($path, $messageType = 3, $extraHeaders = '') { + return new SS_LogFileWriter($path, $messageType, $extraHeaders); + } /** * Write the log message to the file path set