update some log to logger, add cookieshare code snippet