Fix console logs

@nandy-andy @RafLeszczynski @aquilax @rogatty We need to instantiate the logger sooner so all the cached CommonJS modules have a version with set priorities (otherwise logs will be missing).