Revert "Revert "new preprocessor to diable log facilities.""

This reverts commit 299ff7d8f1b8eaf4963bdad5a721d1bef6625d95.