public function printLog($toClean = true) { $log = $this->getLog($toClean); echo '<pre>'; foreach ($log as $l) { echo "{$l}\n"; } echo '</pre>'; }