summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Logger/StandardError.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML/Logger/StandardError.php')
-rw-r--r--lib/SimpleSAML/Logger/StandardError.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/SimpleSAML/Logger/StandardError.php b/lib/SimpleSAML/Logger/StandardError.php
new file mode 100644
index 0000000..62eb8ac
--- /dev/null
+++ b/lib/SimpleSAML/Logger/StandardError.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace SimpleSAML\Logger;
+
+/**
+ * A logging handler that outputs all messages to standard error.
+ *
+ * @author Jaime Perez Crespo, UNINETT AS <jaime.perez@uninett.no>
+ * @package SimpleSAMLphp
+ */
+class StandardError extends \SimpleSAML_Logger_LoggingHandlerFile
+{
+
+ /**
+ * StandardError constructor.
+ *
+ * It runs the parent constructor and sets the log file to be the standard error descriptor.
+ */
+ public function __construct()
+ {
+ parent::__construct();
+ $this->logFile = 'php://stderr';
+ }
+}