unify logging usage