implement cache logging