log_message($level, $message)
Parameters:
$level (string) – Log level: ‘error’, ‘debug’ or ‘info’
$message (string) – Message to log Return type:
void
This function lets you write messages to your log files. You must supply one of three “levels” in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter.
Example:
if ($some_var == '')
{
log_message('error', 'Some variable did not contain a value.');
}
els