diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-31 14:44:27 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-31 14:44:27 +0200 |
commit | 0e007fad1885dfd4a88604b597a991e7c1b23c2d (patch) | |
tree | 6863cab02d749b3ac002fa95d829e73d0f99cb5b /lib/SimpleSAML | |
parent | eca260a3640b4bc58f360a44556441b3f61e6200 (diff) | |
download | simplesamlphp-0e007fad1885dfd4a88604b597a991e7c1b23c2d.zip simplesamlphp-0e007fad1885dfd4a88604b597a991e7c1b23c2d.tar.gz simplesamlphp-0e007fad1885dfd4a88604b597a991e7c1b23c2d.tar.bz2 |
Add a new logger class that logs all messages to standard error.
Diffstat (limited to 'lib/SimpleSAML')
-rw-r--r-- | lib/SimpleSAML/Logger/StandardError.php | 24 |
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'; + } +} |