Added logging_XXX as macros and a LOG_LEVEL compilation option.