MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_Log

Function RM_Log

src/module.cpp:5266–5271  ·  view source on GitHub ↗

Produces a log message to the standard Redis log, the format accepts * printf-alike specifiers, while level is a string describing the log * level to use when emitting the log, and must be one of the following: * * * "debug" (`REDISMODULE_LOGLEVEL_DEBUG`) * * "verbose" (`REDISMODULE_LOGLEVEL_VERBOSE`) * * "notice" (`REDISMODULE_LOGLEVEL_NOTICE`) * * "warning" (`REDISMODULE_LOGLEVEL_WARNING`

Source from the content-addressed store, hash-verified

5264 * will be used instead of the module name.
5265 */
5266void RM_Log(RedisModuleCtx *ctx, const char *levelstr, const char *fmt, ...) {
5267 va_list ap;
5268 va_start(ap, fmt);
5269 moduleLogRaw(ctx? ctx->module: NULL,levelstr,fmt,ap);
5270 va_end(ap);
5271}
5272
5273/* Log errors from RDB / AOF serialization callbacks.
5274 *

Callers

nothing calls this directly

Calls 1

moduleLogRawFunction · 0.85

Tested by

no test coverage detected