◆ __construct()
CrashDump constructor.
- Parameters
-
56 $this->server = $server;
57 $this->path = $this->server->getCrashPath() .
"CrashDump_" . date(
"D_M_j-H.i.s-T_Y", $this->time) .
".log";
58 $this->fp = @fopen($this->path,
"wb");
59 if(!is_resource($this->fp)){
60 throw new \RuntimeException(
"Could not create Crash Dump");
62 $this->data[
"time"] = $this->time;
63 $this->
addLine($this->server->getName() .
" Crash Dump " . date(
"D M j H:i:s T Y", $this->time));
67 }
catch(\Exception $e){
69 $this->
addLine(
"CrashDump crashed while generating base crash data");
◆ add()
- Parameters
-
271 fwrite($this->fp, $str);
◆ addLine()
- Parameters
-
264 fwrite($this->fp, $line . PHP_EOL);
◆ getData()
◆ getEncodedData()
- Returns
- null
92 return $this->encodedData;
◆ getPath()
The documentation for this class was generated from the following file:
- src/pocketmine/CrashDump.php