using logging to show different levels of info