Support default logger and options for custom logger. FYI: https://github.com/apache/pulsar/pull/1827