You probably wanted `log_message('error', $log_message);` ;-)

By the way, why renaming these messages? Could you please give me an example?