if log is trace mode then log print to console.