Added checking if LOG level is enabled