private function showLog() { echo "==== LOG ====\n"; if (property_exists($this, 'logentries')) { foreach ($this->logentries as $logentry) { echo $logentry . "\n"; } } }