src/Ease/Logger/ToStd.php
public function output($type, $logLine)
    {
        switch ($type) {
            case 'error':
                $stderr = fopen('php://stderr', 'w');
                fwrite($stderr, $this->logName.': '.$logLine);
                fclose($stderr);
                break;
            default:
                $stdout = fopen('php://stdout', 'w');
                fwrite($stdout, $this->logName.': '.$logLine);
                fclose($stdout);
                break;
        }
    }
public function output($type, $logLine)
    {
        switch ($type) {
            case 'error':
                $stderr = fopen('php://stderr', 'w');
                fwrite($stderr, $this->logName.': '.$logLine);
                fclose($stderr);
                break;
            default:
                $stdout = fopen('php://stdout', 'w');
                fwrite($stdout, $this->logName.': '.$logLine);
                fclose($stdout);
                break;
        }
    }
Output logline to stderr/stdout by its type

@param string $type    message type 'error' or anything else
@param string $logLine message to output