log refac