simple log computation