Woops. Printf doesn't work on all platforms. 
FRAMEWORK->GetLogger()->dbglog("Printing my number: %d", myNumber);