/** * @return Tlog */ protected function setTLogPaypal() { /* * Write Log */ $this->log = Tlog::getInstance(); $this->log->setDestinations(self::LOGCLASS); $this->log->setConfig(self::LOGCLASS, 0, THELIA_ROOT . "log" . DS . "log-paypal.txt"); }
/** * Returns the module-specific logger, initializing it if required. * * @return Tlog a Tlog instance */ public function getLogger() { if ($this->log == null) { $this->log = Tlog::getNewInstance(); $logFilePath = $this->getLogFilePath(); $this->log->setPrefix("#LEVEL: #DATE #HOUR: "); $this->log->setDestinations("\\Thelia\\Log\\Destination\\TlogDestinationFile"); $this->log->setConfig("\\Thelia\\Log\\Destination\\TlogDestinationFile", 0, $logFilePath); } return $this->log; }
public function __construct() { $this->logger = Tlog::getNewInstance(); $this->logger->setDestinations(static::LOG_CLASS); $this->logger->setConfig(self::LOG_CLASS, 0, THELIA_ROOT . "log" . DS . "log-shopping-flux.txt"); /** * Create a fake user ShoppingFlux if it doesn't exist */ $this->shoppingFluxCustomer = ShoppingFluxConfigQuery::createShoppingFluxCustomer(); $this->shoppingFluxPaymentModule = (new ShoppingFlux())->getModuleModel(); $this->shoppingFluxPaymentModuleId = $this->shoppingFluxPaymentModule->getId(); }