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

Method LogMessage

core/sourcemod.cpp:538–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void SourceModBase::LogMessage(IExtension *pExt, const char *format, ...)
539{
540 IExtensionInterface *pAPI = pExt->GetAPI();
541 const char *tag = pAPI->GetExtensionTag();
542 char buffer[2048];
543 va_list ap;
544
545 va_start(ap, format);
546 vsnprintf(buffer, sizeof(buffer), format, ap);
547 va_end(ap);
548
549 if (tag)
550 {
551 logger->LogMessage("[%s] %s", tag, buffer);
552 } else {
553 logger->LogMessage("%s", buffer);
554 }
555}
556
557void SourceModBase::LogError(IExtension *pExt, const char *format, ...)
558{

Callers 15

AddClientToWatchMethod · 0.45
RemoveClientFromWatchMethod · 0.45
_CancelClientMenuMethod · 0.45
CancelMenuMethod · 0.45
CancelClientMenuMethod · 0.45
OnClientDisconnectedMethod · 0.45
ProcessWatchListMethod · 0.45
ClientPressedKeyMethod · 0.45
DoClientMenuMethod · 0.45
RedoClientMenuMethod · 0.45
CancelMethod · 0.45
DestroyMethod · 0.45

Calls 2

GetAPIMethod · 0.80
GetExtensionTagMethod · 0.45

Tested by

no test coverage detected