makes log utility more flexible