Wrapper around LogMessage to control extent of logging
I am using the following function to log some log messages in my code. For eg. some API calls entry and exit log messages.
int __cdecl LogMessage(const char *,const char *, char *)
I want to build a wrapper function around the above LogMessage function. The wrapper func should take another argument with the help of which we can control the extent of logging.
What could be the best way to do this?

