mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 00:49:33 +02:00
MINOR Fixed SS_LogEmailWriter and SS_LogFileWriter to adhere to new Zend interface
This commit is contained in:
parent
9434f87cb9
commit
f11751c42d
|
@ -24,6 +24,10 @@ class SS_LogEmailWriter extends Zend_Log_Writer_Abstract {
|
||||||
$this->emailAddress = $emailAddress;
|
$this->emailAddress = $emailAddress;
|
||||||
$this->customSmtpServer = $customSmtpServer;
|
$this->customSmtpServer = $customSmtpServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function factory($emailAddress, $customSmtpServer = false) {
|
||||||
|
return new SS_LogEmailWriter($emailAddress, $customSmtpServer);
|
||||||
|
}
|
||||||
|
|
||||||
public static function set_send_from($address) {
|
public static function set_send_from($address) {
|
||||||
self::$send_from = $address;
|
self::$send_from = $address;
|
||||||
|
|
|
@ -43,6 +43,10 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract {
|
||||||
$this->messageType = $messageType;
|
$this->messageType = $messageType;
|
||||||
$this->extraHeaders = $extraHeaders;
|
$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
|
* Write the log message to the file path set
|
||||||
|
|
Loading…
Reference in New Issue
Block a user