update logging behavior