core: add isDebugEnabled to Log class

Add isDebugEnabled to debug methods of Log class for performance

Change-Id: I14598886a3b9269d0a9b4b04febee0aa0f2eec98
Signed-off-by: Alissa Bonas <abonas@redhat.com>