XPMP2-Sample/XPMP2-Sample.cpp
void LogMsg (const char* szMsg, ... )
{
    char buf[512];
    va_list args;
    // Write all the variable parameters
    va_start (args, szMsg);
    std::vsnprintf(buf, sizeof(buf)-2, szMsg, args);
    va_end (args);
    std::strcat(buf, "\n");
    // write to log (flushed immediately -> expensive!)
    XPLMDebugString(buf);
}
/// Log a message to X-Plane's Log.txt with sprintf-style parameters

Log a message to X-Plane's Log.txt with sprintf-style parameters
Log a message to X - Plane ' s Log . txt with sprintf - style parameters
void LogMsg (const char* szMsg, ... )
{
    char buf[512];
    va_list args;
    va_start (args, szMsg);
    std::vsnprintf(buf, sizeof(buf)-2, szMsg, args);
    va_end (args);
    std::strcat(buf, "\n");
    XPLMDebugString(buf);
}
void LogMsg ( const char * szMsg , ... ) { char buf [ 512 ] ; va_list args ; va_start ( args , szMsg ) ; std :: vsnprintf ( buf , sizeof ( buf ) - 2 , szMsg , args ) ; va_end ( args ) ; std :: strcat ( buf , " \n " ) ; XPLMDebugString ( buf ) ; }
Log a message to X-Plane's Log.txt with sprintf-style parameters
Log a message to X - Plane ' s Log . txt with sprintf - style parameters
// Write all the variable parameters
 // write to log (flushed immediately -> expensive!)
