Enables user-provided custom logger.

CC @jonlipsky