add EF log and refactory config