public function setUp() { $dir = sys_get_temp_dir(); $this->stream = tmpfile(); $handler = new AppEngineFlexHandler(Logger::DEBUG, true, 0640, false, $this->stream); $this->log = new Logger('gcloud-test'); $this->log->pushHandler($handler); }