Add log feature and expire time log seems work well