Added check in compilation time

Works better for integration of source code as LOG_VERBOSE is not required to be defined