move log into common