public function __construct($logType = '') { if (!empty($logType)) { $this->logType = $logType; } $this->log = LogFactory::factory($logType); }