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`
| 5155 | * will be used instead of the module name. |
| 5156 | */ |
| 5157 | void 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 | * |
nothing calls this directly
no test coverage detected