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