diff --git a/library/log4php/appenders/LoggerAppenderPhp.php b/library/log4php/appenders/LoggerAppenderPhp.php
new file mode 100644
--- /dev/null
+++ b/library/log4php/appenders/LoggerAppenderPhp.php
@@ -0,0 +1,49 @@
+level < WARN mapped to E_USER_NOTICE
+ * - WARN <= level < ERROR mapped to E_USER_WARNING
+ * - level >= ERROR mapped to E_USER_ERROR
+ *
+ * @version $Revision: 1337820 $
+ * @package log4php
+ * @subpackage appenders
+ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
+ * @link http://logging.apache.org/log4php/docs/appenders/php.html Appender documentation
+ */
+class LoggerAppenderPhp extends LoggerAppender {
+
+ public function append(LoggerLoggingEvent $event) {
+ $level = $event->getLevel();
+ if ($level->isGreaterOrEqual(LoggerLevel::getLevelError())) {
+ trigger_error($this->layout->format($event), E_USER_ERROR);
+ } else if ($level->isGreaterOrEqual(LoggerLevel::getLevelWarn())) {
+ trigger_error($this->layout->format($event), E_USER_WARNING);
+ } else {
+ trigger_error($this->layout->format($event), E_USER_NOTICE);
+ }
+ }
+}