Skip to content
Snippets Groups Projects

log4php version upgraded version 2.2.1

Merged Uma requested to merge uma.s/vtigercrm:log4php_2.2.1 into 7.4.0
+ 233
134
Compare changes
  • Side-by-side
  • Inline
Files
@@ -47,7 +47,7 @@
* Tue Sep 8 21:51:04 2009,120 [5485] FATAL root - Some critical message!
* </pre>
*
* @version $Revision: 1213283 $
* @version $Revision: 1237433 $
* @package log4php
* @subpackage appenders
*/
@@ -82,16 +82,17 @@ class LoggerAppenderMailEvent extends LoggerAppender {
protected $dry = false;
public function activateOptions() {
if (empty($this->layout)) {
throw new LoggerException("LoggerAppenderMailEvent requires layout!");
}
if (empty($this->to)) {
throw new LoggerException("LoggerAppenderMailEvent was initialized with empty 'from' ($this->from) or 'to' ($this->to) Adress!");
$this->warn("Required parameter 'to' not set. Closing appender.");
$this->close = true;
return;
}
$sendmail_from = ini_get('sendmail_from');
if (empty($this->from) and empty($sendmail_from)) {
throw new LoggerException("LoggerAppenderMailEvent requires 'from' or on win32 at least the ini variable sendmail_from!");
$this->warn("Required parameter 'from' not set. Closing appender.");
$this->close = true;
return;
}
$this->closed = false;
Loading