add logger module, code formatted