Calls for error log.
@param mixed $msg Message
@param string $model Model
@param string $category
970469
public static function error($msg, $model = null, $category = 'application')
    {
        Yii::error([
            'msg'   => $msg,
            'model' => $model,
        ], $category);
    }
1090789
public static void error(String msg, Object... args) {
		String tag = generateTag();
		if (!"".equals(tag)) {
			if (args.length > 0) {
				Log.e(tag, String.format(msg, args));
			} else {
				Log.e(tag, msg);

			}
		}
	}
938589
public function log($msg, $level = Project::MSG_INFO)
    {
        $this->logObject($this, $msg, $level);
    }
581809
private function processInvocationError(Session $session, ErrorMessage $msg)
    {
        //$call = $this->getCallByRequestId($msg->getRequestId());
        $call = $this->callInvocationIndex[$msg->getRequestId()];

        if (!$call) {
            $errorMsg = ErrorMessage::createErrorMessageFromMessage($msg);
            Logger::error($this, 'No call for invocation error message: ' . $msg->getRequestId());

            // TODO: do we send a message back to the callee?
            $errorMsg->setErrorURI('wamp.error.no_such_procedure');
            $session->sendMessage($errorMsg);

            return;
        }

        if ($call->getCalleeSession() !== $session) {
            Logger::error($this, 'Attempted Invocation Error from session that does not own the call');
            return;
        }

        $call->getRegistration()->removeCall($call);

        $this->removeCall($call);

        $errorMsg = ErrorMessage::createErrorMessageFromMessage($call->getCallMessage());

        $errorMsg->setErrorURI($msg->getErrorURI());
        $errorMsg->setArguments($msg->getArguments());
        $errorMsg->setArgumentsKw($msg->getArgumentsKw());

        // not sure if this detail should pass through
        $errorMsg->setDetails($msg->getDetails());

        $call->getCallerSession()->sendMessage($errorMsg);
    }
696294
def log_error(self, msg):
        
        if self.__logger:
            self.__logger.error(msg)

        raise RuntimeError(msg)
304681
public void error(Object format,Object... msg) {
		if (logger.isErrorEnabled()) {
			// check if the first message contains variables variables
			if (format.toString().contains("{")) {
				logger.error(format.toString(), msg);
			} else {
				logger.error(format.toString().concat(" ").concat(JKStringUtil.concat(msg)));
			}
		}
	}
88401
protected function log ($msg = '', $logType = 'debug') {
		if (self::$loggingAndExceptions) {
			\MvcCore\Debug::Log($msg, $logType);
		}
	}
528883
private function errorHandler($msg)
    {
        $waited = $this->getConfig('locktimeout');
        $this->log("PANIC! {$this->sid} cannot be acquired after waiting for {$waited}s. ");
        $h = $this->getConfig('error_handler');

        //call and exit
        call_user_func_array($h, array($msg));
        exit(1);
    }
57737
public function fatal($message, $category = null)
    {
        return $this->log(self::LEVEL_FATAL, $message, $category);
    }
458230
public function warning( $object , $category , $message )
	{
		return $this->message( self::getMessagePrefix( $object , $category , 'warn' ) . $message , self::LEVEL_WARNING );
	}
391116
private function error($msg)
    {
        if (class_exists('\sasco\LibreDTE\Estado') and class_exists('\sasco\LibreDTE\Log')) {
            $msg = \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::FIRMA_ERROR, $msg);
            \sasco\LibreDTE\Log::write(\sasco\LibreDTE\Estado::FIRMA_ERROR, $msg);
            return false;
        } else {
            throw new \Exception($msg);
        }
    }
558961
protected function logError(string $msg)
    {
        $this->logger->error('CMD: ' . $msg);
        $this->out->writeln("<error>$msg<error>");
    }
669601
function (message) {
        // Error messages are always logged. No need to check.
        console.error.apply(console, logArgs(Level.ERROR, this.category, arguments));
    }
551393
private void log(@NonNull Logger log, @NonNull ComapiResult r, String msg) {
        if (!r.isSuccessful()) {
            log.e(msg + ". Error calling services" + " (" + r.getCode() + "). " + r.getMessage() + ". " + r.getErrorBody());
        }
    }
596154
function error($msg, $section = 'bors', $trace = false, $extra = array())
	{
		static $entered = false;
		if($entered)
			throw new Exception('Reentered logger with '.$msg.' in section '.$section);

		$entered = true;

		try
		{
			$this->logger($section, Logger::ERROR, $trace)->addError($msg, $extra);
		}
		catch(Exception $e)
		{
			echo "Exception while error logging:\n<code><xmp>".$e->getMessage()."</xmp></code>\nFirst error is:\n<xmp>$msg\nin".bors_debug::trace()."</xmp>";
		}

		$entered = false;
	}
697105
public function log($level, $message, array $context = [])
    {
        // Resolve category from 'context'
        $category = ArrayHelper::remove($context, 'category', $this->category);

        // Resolve level
        $level = ArrayHelper::getValue($this->map, $level, $this->level);

        $this->logger->log(
            $this->interpolate($message, $context),
            $level,
            $category
        );
    }
248700
public function logError($error, $msg = '')
    {
        if (is_object($error)) {
            // we got exception object obviously
            $error = $error->getMessage();
        }
        $this->app->getLogger()->logLine($msg.' '.$error."\n", null, 'error');
    }