Added logging setup (console/file) utility method.