elog_message like log_message would only send at_logged alerts. register_logevent and plugin_log seem to only care about at_logged alerts.
https://github.com/alliedmodders/amx..._api.cpp#L1457
Correct me if I'm wrong, but wouldn't adding the elog_message native be as simple:
Code:
static cell AMX_NATIVE_CALL elog_message(AMX *amx, cell *params) /* 1 param */
{
int len;
g_langMngr.SetDefLang(LANG_SERVER);
char* message = format_amxstring(amx, params, 1, len);
message[len++] = '\n';
message[len] = 0;
ALERT(at_logged, "%s", message);
/* Call C_AlertMessae with the message and let it do the work? */
C_AlertMessage(at_logged, message);
/******************************************************/
return len;
}