You can format this so that printLog() can just call this directly.