Improving logging util + rule