MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_Log

Function RM_Log

app/redis-6.2.6/src/module.c:5157–5162  ·  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

5155 * will be used instead of the module name.
5156 */
5157void RM_Log(RedisModuleCtx *ctx, const char *levelstr, const char *fmt, ...) {
5158 va_list ap;
5159 va_start(ap, fmt);
5160 moduleLogRaw(ctx? ctx->module: NULL,levelstr,fmt,ap);
5161 va_end(ap);
5162}
5163
5164/* Log errors from RDB / AOF serialization callbacks.
5165 *

Callers

nothing calls this directly

Calls 1

moduleLogRawFunction · 0.85

Tested by

no test coverage detected