public function __construct() { $logConfig = ApiConfig::getLogConfig(); parent::__construct($logConfig['name']); parent::pushHandler(new RotatingFileHandler("{$logConfig['log_path']}/info-log"), Logger::INFO); parent::pushHandler(new RotatingFileHandler("{$logConfig['log_path']}/info-log"), Logger::ERROR); }