implement logger cache