/usr/share/php/Analog/Handler/Stderr.php is in php-analog 1.0.7-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?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, $buffered = false) {
file_put_contents ('php://stderr', ($buffered)
? $info
: vsprintf (\Analog\Analog::$format, $info));
};
}
}
|