added macro guard to enable overriding ENABLE_LOG