Adds a log record at the INFO level.

@param  string $message The log message
@param  array  $context The log context

@return Boolean Whether the record has been processed
489906
public function addInfo($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::INFO, $message, $context);
    }
552074
public function emergency($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::EMERGENCY, $message, $context);
    }
443959
protected function addRecord($level, $message, array $context = array())
    {
        if ($this->handlers->count() < 1) {
            throw new LoggerException('To log a record you must add at least one AbstractHandler object to handle the messages.'
            );
        }

        $record = new Record();
        $record->setLoggerName($this->name);
        $record->setMessage((string)$message);
        $record->setContext($context);
        $record->setLevel($level);
        $record->setDatetime($this->datetime("now"));

        // check if any handler will handle this message
        $canHandle = false;
        foreach ($this->handlers as $handler) {
            if ($handler->canHandle($record)) {
                $canHandle = true;
                break;
            }
        }

        if (!$canHandle) {
            return false;
        }

        /* @var $handler Webiny\HandlerAbstract */
        foreach ($this->handlers as $handler) {
            if ($handler->canHandle($record)) {
                $bubble = $handler->process(clone $record);
                if (!$bubble) {
                    break;
                }
            }
        }

        return true;
    }
227478
public function beginDebug(string $message, array $context = []) {
        return $this->begin(LogLevel::DEBUG, $message, $context);
    }
1370632
public function log($level, $message, array $context = array())
    {
        $this->logMessage(
            $level,
            $this->getFormattedMessage($level, $message)
        );
    }
902698
public function log($level, $message, array $context = array())
    {
        if (isset($this->levels[$level]) && $this->levels[$level] < $this->minLevel) {
            return;
        }
    
        if (!empty($this->context) || !empty($context)) {
            $context = array_merge($this->context, $context);
        }
        
        if ($this->prefix !== '') {
            $this->logger->log($level, $this->prefix . $message, $context);
        } else {
            $this->logger->log($level, $message, $context);
        }
    }
943228
public static function debug($message, $context)
    {
        self::$logger->pushHandler(new StreamHandler(self::$log_file), Logger::DEBUG);
        return self::$logger->debug($message, $context);

    }
1279407
public function emergency($message, array $context = array())
    {
        // TODO: Implement emergency() method.
        return $this->addRecord(\Psr\Log\LogLevel::EMERGENCY, $message, $context);
    }
353580
public function log($level, $message, array $context = array())
    {
        if (!array_key_exists($level, $this->levels)) {
            $level = $this->defaultLevel;
        }
        
        $level = \LoggerLevel::toLevel($this->levels[$level], $this->defaultLevel);
        
        $message = $this->formatter->format($level, $message, $context);

        $this->logger->log($level, $message);
    }
53515
public function log($level, $message, array $context = [])
    {
        $log_levels = array_flip(get_class_methods(__CLASS__));
        unset($log_levels['log']);

        if (isset($log_levels[$level])) {
            return $this->$level($message, $context);
        }
    }
166006
public function log($level, $message, array $context = array())
    {
        foreach ($this->loggerInstances as $logger) {
            $logger->log($level, $message, $context);
        }
    }
1216695
public function log($level, $message, array $context = array())
    {
        $record = array(
            'channel'  => $this->channel,
            'level'    => $level,
            'message'  => $message,
            'context'  => $context,
            'extra'    => array(),
            'datetime' => new \DateTime(),
        );

        if ($this->isHandling($record)) {
            foreach ($this->processors as $processor) {
                $record = call_user_func($processor, $record);
            }
            $this->handler->handle($record);
        }
    }
161868
public function log($level, $message, array $context = [])
    {
        if (in_array($level, $this->acceptedLevels, true)) {
            $this->logger->log($level, $message, $context);
        }
    }
178482
protected function logInfo($message, array $context = [])
    {
        $this->hasLogger() === true ?: $this->logger->info($message, $context);
    }
1159001
public function notice($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->notice($message, $context);
        }
    }
168768
public static function info($message, $context = [], $channel = 'tastphp.logger')
    {
        $logger = static::getLoggerByLevelAndChannel(Monolog::INFO, $channel);
        $logger->addInfo($message, $context);
    }
743932
public function log($level, $message, $context = [])
    {
        // This will be empty when output messages are triggered by the command
        // when it's NOT called by a worker option
        if (empty($this->logger)) {
            return;
        }

        // Call the logger's level specific methods
        $method = 'add'.ucfirst($level);
        $this->logger->$method($message, $context);
    }