This function is a workaround for an issue with Clang targeting Windows. A function in a class template cannot contain log statements if that class template is derived from by a type annotated with {Module}_API.