Error Handling Learning Mode

Which function is responsible for sending a custom message to the system log?