little reworking around getting a logger