logging working for chrome and safari