var logger: ((String, String) -> Unit)?
Logger function (must be thread safe)
Set to null to disable logging.