Logger optimization