add logger factory