Print messages in the log file rholog.txt. Call these methods from your controller file (such as modelname_controller.rb).
Print an information message in the rholog.txt file. The message will have an “APP” prefix.
app_info(message)
message |
String. The informational message to show in rholog.txt. |
Sample app_info call:
app_info "My info message"
Print an error message in the rholog.txt file. The message will have an “ERROR: APP” prefix.
app_error(message)
message |
String. The error message to show in rholog.txt. |
Sample app_error call:
app_error "My error message"