core: add isTraceEnabled to Log class

Add isTraceEnabled to trace methods of Log class for performance

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