a self logging tool