add IsTraceEnabled around Trace logging
tweak log settings