Permalink
Browse files

Added buffered output to Stderr handler

  • Loading branch information...
1 parent 882fc36 commit 72dd9fbcd645e7b35e6bce529ba4ee33168b2980 @jbroadway committed Jan 12, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Analog/Handler/Stderr.php
View
6 lib/Analog/Handler/Stderr.php
@@ -15,8 +15,10 @@
*/
class Stderr {
public static function init () {
- return function ($info) {
- file_put_contents ('php://stderr', vsprintf (\Analog\Analog::$format, $info));
+ return function ($info, $buffered = false) {
+ file_put_contents ('php://stderr', ($buffered)
+ ? $info
+ : vsprintf (\Analog\Analog::$format, $info));
};
}
}

0 comments on commit 72dd9fb

Please sign in to comment.