Add logging to SAPI5 synthDriver and move constants to Enums (#12927)
This is not a focused refactor, and as such, more work could be done to improve the SAPI 5 driver.
Description of how this pull request fixes the issue:
Implements IntEnums for constants
Adds logging
Clean up imports