Improving logging use