Added setup logging util and unit test