Log

Writes a log message to the Redis log file.

public static void log(java.lang.String msg)

public static void log(java.lang.String msg, LogLevel level)

Writes a log message to the Redis log file. If you do not specify a LogLevel, it will default to NOTICE.

Parameters

Name Type Description
msg string The message to write to the log
level LogLevel The log level (DEBUG, NOTICE, VERBOSE, WARNING)

Returns

None

Example

GearsBuilder.log(
    "Setting keys to expire after 1 month", 
    LogLevel.WARNING
);
RATE THIS PAGE
Back to top ↑