Gpf_Log_Logger::add PHP Method

add() public method

attachs new log system
public add ( $type, $logLevel ) : Gpf_Log_LoggerBase
return Gpf_Log_LoggerBase
        public function add($type, $logLevel)
        {
            if ($type == Gpf_Log_LoggerDisplay::TYPE) {
                $this->logToDisplay = true;
            }
            return $this->addLogger($this->create($type), $logLevel);
        }

Usage Example

 public function __construct()
 {
     $this->logger = Gpf_Log_Logger::getInstance();
     $this->logger->add(Gpf_Log_LoggerDatabase::TYPE, Gpf_Log::DEBUG);
     $this->outputMessage = '';
     $this->importedLinesCount = 0;
     $this->wrongLinesCount = 0;
 }