MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / LogError

Method LogError

core/sourcemod.cpp:557–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557void SourceModBase::LogError(IExtension *pExt, const char *format, ...)
558{
559 IExtensionInterface *pAPI = pExt->GetAPI();
560 const char *tag = pAPI->GetExtensionTag();
561 char buffer[2048];
562 va_list ap;
563
564 va_start(ap, format);
565 vsnprintf(buffer, sizeof(buffer), format, ap);
566 va_end(ap);
567
568 if (tag)
569 {
570 logger->LogError("[%s] %s", tag, buffer);
571 } else {
572 logger->LogError("%s", buffer);
573 }
574}
575
576size_t SourceModBase::FormatString(char *buffer, size_t maxlength, IPluginContext *pContext, const cell_t *params, unsigned int param)
577{

Callers 15

CreateDetourMethod · 0.45
ReadSMC_NewSectionMethod · 0.45
UnhookCommandMethod · 0.45
EnableMethod · 0.45
LevelInitMethod · 0.45
SetChatTriggerMethod · 0.45
AddCommandListenerFunction · 0.45
SM_GenerateConfigFileFunction · 0.45
SM_ExecuteConfigFunction · 0.45
InitLogicalEntDataMethod · 0.45

Calls 2

GetAPIMethod · 0.80
GetExtensionTagMethod · 0.45

Tested by

no test coverage detected