Added log utility method