Improved stdio logger.
Fix Cython exports and pad log label.