typedef INDEX (__cdecl * RealVLogFunction)(CTEXTSTR format, va_list args);
logging.h
int result is useless... but allows this to be within expressions, which with this method should be easy.
Types