Sets file manager messages
@param string $message
@param string $severity
@param bool $once
3601
protected function setMessageFileManager($message, $severity, $once = false)
    {
        if ($once) {
            $this->session->setMessage($message, $severity, 'file_manager_messages');
        } else {
            $messages = $this->getData("messages.$severity", array());
            $messages[] = $message;
            $this->setData("messages.$severity", $messages);
        }
    }
950340
public function setMessage($message)
    {
        if ( ! is_null($message)) $message = (string) $message;

        $this->setAttribute('message', $message);

        return $this;
    }
1346107
protected function write($message, $severity)
    {
        $log = new \Log('acumulus.log');
        $message = sprintf('%s - %s', $this->getSeverityString($severity), $message);
        $log->write($message);
    }
1294329
public function setMessage(\TelegramBot\Api\Types\Message $message): void
	{
		$this->message = $message;
		$this->chatId = $this->message->getChat()->getId();
		$this->userId = $this->message->getFrom()->getId();
	}
235497
public function info($message, array $context = []) : void
    {
        /** @psalm-suppress UndefinedClass */
        SspLogger::info($message.($context ? " ".var_export($context, true) : ""));
    }
1371407
final public function setErrorMessage($message)
    {
        $this->errorMessage = (string) $message;

        if (empty($this->errorMessage)) {
            throw new \RuntimeException('Error message cannot be empty !');
        }

        return $this;
    }
176951
protected function write($message, $severity)
    {
        $message = sprintf('Acumulus: %s', $message);
        Mage::log($message, $this->getMagentoSeverity($severity));
    }
423533
public function addRule($validation, $message, $severity = Validator\Rule::ERROR)
    {
        $this->rules[] = new Validator\Rule(
            $this->entity,
            $this->_getValidation($validation),
            $message,
            $this->property,
            $severity,
            $this->child
        );
        return $this;
    }
557871
public function logMessage($message, $level = 0) {
        $this->getLogFile();
        if (!flock($this->_fp, LOCK_EX)) {
            throw new LoggerFileException('Can\'t obtain file lock for: ');
        }
        $text = '[' . date("H:i:s") . ']' . $this->_levelNames[$level] . " " . $message . "\n"; // Log message
        if (fwrite($this->_fp, $text)) {
            flock($this->_fp, LOCK_UN);
            return true;
        } else {
            flock($this->_fp, LOCK_UN);
            throw new LoggerFileException('Can\'t write to logfile!');
        }
    }
466104
private function log(string $message, string $priority = LogLevel::INFO, array $parameters = []): void
    {
        $this->logger->log($priority, $message, $parameters);
    }
516860
public function critical($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->critical($message, $context);
        }
    }
91391
protected function write($message, $severity)
    {
        $logger = $this->getLogger();
        $logger->log($message, $this->getPrestaShopSeverity($severity));
    }
786644
public function security($message): void
	{
		$message = $this->logMessToArray($message);
		$this->log(array_merge(['SEVERITY' => 'SECURITY'], $message));
	}
203700
public function assertStringEndsWith($suffix, $message = '')
    {
        Assert::assertStringEndsWith($suffix, $this->getData(), $message);

        return $this;
    }
1047853
public function setMessage(string $message)
    {
        if (strlen($message) > 0) {
            $properties = $this->getProperties();
            $properties['message'] = $message;
            $this->setProperties($properties);
            return $this;
        }
        return false;
    }
1109826
public function between($min, $max, $include = TRUE, $message = null)
    {
        $message = $this->_getDefaultMessage(__FUNCTION__, array($min, $max, $include));

        $this->min($min, $include, $message)->max($max, $include, $message);
        return $this;
    }
534426
public function setStatusMessage($message)
    {
        if($entity = $this->getIterator()->current()) {
            $entity->setStatusMessage($message);
        }

        return $this;
    }