Put the expression type handling all in loggingExpression.