This function takes the following parameters:
The ID of the module to be associated with the message.
The logging level of the message.
A printf-style format string.