Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (20 sloc) 0.413 kb
<?php
namespace Analog\Handler;
/**
* Send the output to STDERR.
*
* Usage:
*
* Analog::handler (Analog\Handler\Stderr::init ());
*
* Analog::log ('Log me');
*
* Note: Uses Analog::$format for the appending format.
*/
class Stderr {
public static function init () {
return function ($info) {
file_put_contents ('php://stderr', vsprintf (\Analog\Analog::format (), $info));
};
}
}
Jump to Line
Something went wrong with that request. Please try again.