mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed SS_LogEmailWriter and SS_LogFileWriter to adhere to new Zend interface
This commit is contained in:
parent
9434f87cb9
commit
f11751c42d
@ -25,6 +25,10 @@ class SS_LogEmailWriter extends Zend_Log_Writer_Abstract {
|
||||
$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;
|
||||
}
|
||||
|
@ -44,6 +44,10 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract {
|
||||
$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
|
||||
* in this writer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user